[SOLVED] dynamic gallery in a single html-block
Posted: Wed Dec 29, 2010 2:21 pm
Got a little bit of a challenge for you all (or not).
First, let me show you the site/page what it's all about: http://websitedelivery.nl/Texeltrips/in ... ingplanner
As you can see there is a gallery on the right (Gallery module). Works fine! But now i want to use this gallery on several pages, off course with other images (other directories from the Gallery). Also no problem, this works with the dir="" tag from the Gallery.
But here's my problem. I don't want to add 10 HTML content blocks (sidebars) and templates, but i just want to add one block with a dynamic code in it so it works for all of the gallery's.
I allready searched a lot of forums, but didn't find the answer. To give you guys a headstart, i think it should be something like this:
{if page='texelopties' gallery dir="texelopties"}
{if page='weddingplanner' gallery dir="weddingplanner"} etc etc..
Could you guys please help me out?
Thanks a lot.
First, let me show you the site/page what it's all about: http://websitedelivery.nl/Texeltrips/in ... ingplanner
As you can see there is a gallery on the right (Gallery module). Works fine! But now i want to use this gallery on several pages, off course with other images (other directories from the Gallery). Also no problem, this works with the dir="" tag from the Gallery.
But here's my problem. I don't want to add 10 HTML content blocks (sidebars) and templates, but i just want to add one block with a dynamic code in it so it works for all of the gallery's.
I allready searched a lot of forums, but didn't find the answer. To give you guys a headstart, i think it should be something like this:
{if page='texelopties' gallery dir="texelopties"}
{if page='weddingplanner' gallery dir="weddingplanner"} etc etc..
Could you guys please help me out?
Thanks a lot.