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

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
AmandaBTO
Forum Members
Forum Members
Posts: 51
Joined: Thu Aug 09, 2007 2:40 pm

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

Post 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
Last edited by AmandaBTO on Fri Aug 10, 2007 12:18 pm, edited 1 time in total.
Post Reply

Return to “CMSMS Core”