Skip to content

Instantly share code, notes, and snippets.

@qbmarketing
Created March 4, 2013 17:58
Show Gist options
  • Save qbmarketing/5084127 to your computer and use it in GitHub Desktop.
Save qbmarketing/5084127 to your computer and use it in GitHub Desktop.
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"}
{if:else}
{exp:gmap:init id="map_{entry_id}" class="gmap" style="width:100%;height:200px"}
{/if}
{/exp:ifelse}
{regions_map id="map_{entry_id}"}
</div>
</div>
{if count != total_results}
<div class="row">
<div class="twelve columns">
<hr/>
</div>
</div>
{/if}
{/exp:channel:entries}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment