[Solved] Company Directory and CGGooglemaps2

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Torpedine
Forum Members
Forum Members
Posts: 142
Joined: Thu May 18, 2006 3:53 pm

[Solved] Company Directory and CGGooglemaps2

Post by Torpedine »

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.
Last edited by Torpedine on Fri Oct 04, 2013 6:20 am, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Company Directory and CGGooglemaps2

Post by Rolf »

I think the correct Smarty3 syntax is:

Code: Select all

{cggm2_add_dynpoint map=1 name='{$entry->company_name}' address='{$entry->address}'}
Or:

Code: Select all

{cggm2_add_dynpoint map=1 name=$entry->company_name address=$entry->address}
Hope it helps.
Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Torpedine
Forum Members
Forum Members
Posts: 142
Joined: Thu May 18, 2006 3:53 pm

Re: Company Directory and CGGooglemaps2

Post by Torpedine »

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?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Company Directory and CGGooglemaps2

Post by Rolf »

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
- + - + - + - + - + - + -
Image
pwg
Forum Members
Forum Members
Posts: 191
Joined: Tue Aug 01, 2006 1:48 am

Re: Company Directory and CGGooglemaps2

Post by pwg »

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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Company Directory and CGGooglemaps2

Post by calguy1000 »

In your detail template:

Code: Select all

{cggm_add_dynpoint map='1' name=$entry->company_name address=$entry->address} 
{CGGoogleMaps map='1'}
In your summary template

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.
Torpedine
Forum Members
Forum Members
Posts: 142
Joined: Thu May 18, 2006 3:53 pm

Re: Company Directory and CGGooglemaps2

Post by Torpedine »

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
Torpedine
Forum Members
Forum Members
Posts: 142
Joined: Thu May 18, 2006 3:53 pm

Re: Company Directory and CGGooglemaps2

Post by Torpedine »

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!
Locked

Return to “Modules/Add-Ons”