I'm working at this : I'd like to display all my FEU on a Google Map. This isn't really hard and this is the snippet I use :
Code: Select all
{foreach from=$users item='oneuser'}
{foreach from=$oneuser.properties item='onepropvalue' key='propname'}
{if $properties.$propname.name == "adresse"}
{cggm_add_dynpoint map='2' address="$onepropvalue" name="$oneuser.username"}
{/if}
{/foreach}
{/foreach}
{CGGoogleMaps map="2"}
I've got 2 properties :
- profile
- adress : this one's already used to geolocate the user's on the map
This is what I tried to display my FEU's balloon with properties :
Code: Select all
{foreach from=$users item='oneuser'}
{foreach from=$oneuser.properties item='onepropvalue' key='propname'}
{assign var='profile' value=$profile}
{if $properties.$propname.name == "adress"}
{assign var='UserName' value=$oneuser.username}
{capture assign='description'}
<h3>{$UserName}</h3>
{$profile}
{/capture}
{cggm_add_dynpoint map='2' address="$onepropvalue" name="$UserName" description="$description"}
{/if}
{/foreach}
{/foreach}
{CGGoogleMaps map="2"}

Any idea how can I display my properties ?
Any help welcome
