question about smarty tags

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
cubix
Power Poster
Power Poster
Posts: 314
Joined: Mon Jul 09, 2007 10:00 am

question about smarty tags

Post by cubix »

Im trying to use the simple google map module with the cataloger module.

the variables i need to use are $street and $city

Code: Select all

{SimpleGoogleMap map='mymap' addr='Musee du Louvre, Paris'}
id assume it would work something like this...

Code: Select all

{SimpleGoogleMap map='mymap' addr=$street, $city}
any suggestions?
cyberman

Re: question about smarty tags

Post by cyberman »

Use {get_template_vars} to see which Smarty variables are available.
cubix
Power Poster
Power Poster
Posts: 314
Joined: Mon Jul 09, 2007 10:00 am

Re: question about smarty tags

Post by cubix »

{$street} and {$city} are fields ive created for the cataloger.

the problem i have is how to put both tags inside another smarty tag without throwing errors.

Code: Select all

{SimpleGoogleMap map='mymap' addr=$street}
works fine

but i need to add the street, then the city for it to show the correct location.
cyberman

Re: question about smarty tags

Post by cyberman »

Looks like addr is not ready to handle more than one parameter.

Have you tried to merge $street and $city?
alby

Re: question about smarty tags

Post by alby »

cubix wrote: {$street} and {$city} are fields ive created for the cataloger.

the problem i have is how to put both tags inside another smarty tag without throwing errors.

Code: Select all

{SimpleGoogleMap map='mymap' addr=$street}
works fine

but i need to add the street, then the city for it to show the correct location.
Try with:

Code: Select all

{SimpleGoogleMap map="mymap" addr="$street, $city"}

Alby
cubix
Power Poster
Power Poster
Posts: 314
Joined: Mon Jul 09, 2007 10:00 am

[solved] Re: question about smarty tags

Post by cubix »

thanks alby, thought it would be simple, i guess its late here.

cyberman, managed to get it going with something like this. but works just as well albys way.

Code: Select all

{assign var="map" value=$street,$city}
Post Reply

Return to “CMSMS Core”