Google Maps and Company Directory
Posted: Thu Oct 21, 2010 10:48 am
Hi, I got CGGoogle Maps set up with the Company Directory Module, and I am displaying the companies on the map using the following code
Works great, but I am using the system in a slightly different way to its main purpose and its not companies I am listing its churches, and as you may guess not all churches have address's, I want to plot the map using the long/lat co ordinates I specify for each record.
Does any one know if it can be done?
Code: Select all
{CompanyDirectory assign="" detailpage="churchyard-details"}
{foreach from=$items item='entry'}
{assign var='name' value=$entry->company_name}
{assign var='address' value=$entry->address}
{capture assign='description'}
<img src="{$entry->logo_path}" style="float: left;" />
<div style="float: left; margin: 0 0 25px 10px; width: 300px">
<h3>{$entry->company_name}</h3>
<a href="{$entry->detail_url}">Find out more</a>
</div>
{/capture}
{cggm_add_dynpoint map='1' name="$name" address="$address" description="$description"}
{/foreach}
{CGGoogleMaps map='1' zoom='1' }
Works great, but I am using the system in a slightly different way to its main purpose and its not companies I am listing its churches, and as you may guess not all churches have address's, I want to plot the map using the long/lat co ordinates I specify for each record.
Does any one know if it can be done?