I have a list of companies in Company Directory.
I would like to show a map, on the detail view, showing the location of the single company, but I don't know hot to use the
cggm2_add_dynpoint plugin:
{cggm2_add_dynpoint map=1 name={$entry->company_name} address={$entry->address}}
does not show anything.
How can I use it? and where?
Thanks in advance.
[Solved] Company Directory and CGGooglemaps2
[Solved] Company Directory and CGGooglemaps2
Last edited by Torpedine on Fri Oct 04, 2013 6:20 am, edited 1 time in total.
Re: Company Directory and CGGooglemaps2
I think the correct Smarty3 syntax is:Or:
Hope it helps.
Rolf
Code: Select all
{cggm2_add_dynpoint map=1 name='{$entry->company_name}' address='{$entry->address}'}
Code: Select all
{cggm2_add_dynpoint map=1 name=$entry->company_name address=$entry->address}
Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Company Directory and CGGooglemaps2
Thanks, but, I do I use it? in the Company Directort detail template? together with the {CGGoogleMaps2} tag?
or in the map template of CGGM2?
or in the map template of CGGM2?
Re: Company Directory and CGGooglemaps2
At http://buispost.eu/remaining-informatio ... rocom-gmbh I have in CD detailtemplate:
Code: Select all
{cggm_add_dynpoint map='1' name=$entry->company_name address=$entry->address}
{CGGoogleMaps map='1'}
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Company Directory and CGGooglemaps2
Hi Torpedine, I know this is a really big ask, but once you have Company Directory and CGGooglemaps2 working together, would you mind posting a brief how you did it here.
I get very lost, very quickly, but would definitely really like the functionality.
I'm adding all the maps manually in the detail view of CD, it just doesn't seem the best way to do it.
Cheers,
Paul
I get very lost, very quickly, but would definitely really like the functionality.
I'm adding all the maps manually in the detail view of CD, it just doesn't seem the best way to do it.
Cheers,
Paul
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Company Directory and CGGooglemaps2
In your detail template:
In your summary template
Code: Select all
{cggm_add_dynpoint map='1' name=$entry->company_name address=$entry->address}
{CGGoogleMaps map='1'}
Code: Select all
{foreach $items as $entry}
...
{cggm_add_dynpoint map='1' name=$entry->company_name address=$entry->address}
{/foreach}
{CGGoogleMaps map='1'}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Company Directory and CGGooglemaps2
It gives me back this two errors, showing the map but not the marker:
Code: Select all
Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/mhd-01/www.bimbodove.it/htdocs/modules/CGExtensions/lib/class.cge_http.php on line 87
Warning: file_get_contents(http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=Lungarno+Mediceo+9++-+PISA) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/mhd-01/www.bimbodove.it/htdocs/modules/CGExtensions/lib/class.cge_http.php on line 87
Geolocation (address to lat/long) failed.. marker "Libroteca C'era una volta" skipped
Re: Company Directory and CGGooglemaps2
I checked, fopen is disabled on my hosting, I'll see if it's possible to enable it, or I'll change server...
Anyway, thanks in advance!
EDIT: SOLVED!
Anyway, thanks in advance!
EDIT: SOLVED!