Skip to content

Instantly share code, notes, and snippets.

@qbmarketing
qbmarketing / gist:5083140
Created March 4, 2013 15:43
mapping the offices
{exp:gmap:init id="map" scrollwheel="false" center="halifax, ns" style="width:100%; height:500px; margin-bottom: 20px; border: 1px solid #e1e1e1;"}
{exp:channel:entries channel="navigators" limit="50" orderby="navigators_reorder" sort="asc" disable="member_data|pagination|categories|category_fields" dynamic="no"}
{related_entries id="navigators_rda_office"}
{exp:gmap:marker id="map" latitude="{offices_latitude}" longitude="{offices_longitude}" clustering="true"}
{title} / {offices_latitude} / {offices_longitude}
{/exp:gmap:marker}
@qbmarketing
qbmarketing / gist:5084127
Created March 4, 2013 17:58
list of regions with map for each
{exp:channel:entries channel="regions" orderby="regions_reorder" sort="asc" dynamic="no" disable="categories|member_data|pagination"}
<div class="row">
<div class="eight columns">
<h3>{title}</h3>
<p>List Navigator offices within in this region</p>
</div>
<div class="four columns">
{exp:ifelse parse="inward"}
{if count != "1"}
{exp:gmap:init id="map_{entry_id}" class="gmap" style="width:100%;height:200px" script_tag="false"}
@qbmarketing
qbmarketing / interior wrapper template
Created August 13, 2013 18:47
Current EE template partials approach. The idea is this: each template group has a "pages" channel (just using regular EE entries). The custom field group for "pages" is shared across each template group's pages channel. Within that group, there is a body, list after, and extended body field (along with some SEO fields). The "list after" is a se…
{sn_doc_open}
<div class="row">
<div class="large-9 columns main-content-column">
{exp:stash:get_list name="entry_details" limit="1"}
<h1>{entry_title}</h1>
{entry_body}
{/exp:stash:get_list}