Hi.
I'm trying to combine Gallery with Highslide, http://highslide.com/, or even more specific, this variant: http://www.roadrash.no/hs-support/modif ... ption.html. To do this effectively, I need to pass some variables from Gallery to a javascript, but I cannot find out how to do this.
Any tips out there?
I've managed to do the integration, but need it to be dynamic, hence the variable-passing to the javascript.
Smarty to javascript in Gallery
Re: Smarty to javascript in Gallery
You can put the javascript in the first template field, in stead of the javascript field. That way you can put smarty variables to the script.
Note that javascript sometimes uses { and } signs. Smarty relies on them too, therefore the javascript curlybrackets need to be escaped by {literal} {/literal} tags.
Note that javascript sometimes uses { and } signs. Smarty relies on them too, therefore the javascript curlybrackets need to be escaped by {literal} {/literal} tags.
Re: Smarty to javascript in Gallery
It's not that simple I remember it took me a long time to sort out.
See http://www.clivegrylls.com/photos/india ... cape/28-2/
PM me with further details if you haven't sorted it.
See http://www.clivegrylls.com/photos/india ... cape/28-2/
PM me with further details if you haven't sorted it.
Re: Smarty to javascript in Gallery
Thank you all, but I've managed to get it working.
Escaping javascript with {} worked great.
Escaping javascript with {} worked great.