Page 1 of 1

[solved]... kinda - ImageGallery tag: can picFolder come from a content block?

Posted: Thu Aug 09, 2007 2:50 pm
by AmandaBTO
Hi Everybody

I'm running cms made simple 1.1 and it came with ImageGallery 0.3 Beta

All the examples I've seen have the picFolder parameter hard coded but I'd like the user to be able to specify which directory is on display.  I added the content block tag so my users have somewhere to put the directory name but I can't get the 2 tags to work together.  I'm positive it has something to do with brackets inside brackets and parsing

I've tried php'ing the dir inside the ImageGallery tag (to no avail) and php'ing the whole ImageGallery tag (but my page just displayed the line)

Has anyone found a way to make picFolder dynamic?

Thanks
Amanda

*** EDIT ***
I sort of made it dynamic by assigning the path and page alias to a variable and then using that variable
{assign var='pageGallery' value="uploads/images/$page_alias/"}
{ImageGallery picFolder="$pageGallery" thumbPicCaption="none"}

It feels hack-y but it does the trick.  Now I just need to train the client to call the directory the same as the page alias.  We'll see how that turns out

Thanks anyway