Page 1 of 1

NeoGallery problem - how do I set the gallery dynamically?

Posted: Mon May 18, 2009 10:28 am
by memerson
Hi everyone

I'm using the NeoGallery module on my site and since I'm using it in one template that will pertain to several different pages which have different galleries,  I need it to be set dynamically.

I know that the code for displaying a gallery is as follows:

Code: Select all

{NeoGallery gallery=mygallery}
However since I need to set it dependent on what page I'm on, I tried putting the alias of the gallery (in this case mygallery) into the Extra Page Attribute 3 field of the page and used the get_content_props code in my user-defined tags and figured that all I needed to do in the template was:

Code: Select all

{NeoGallery gallery=get_content_props fields='extra3'}
But...it doesn't do the trick.

Does anyone know how to get around this? I know it's picking up the content of the extra3 field but evidently it doesn't work this way. I would aprpeciate any help with this issue, thank you.

Michael

Re: NeoGallery problem - how do I set the gallery dynamically?

Posted: Tue Jul 21, 2009 10:37 pm
by Dr.CSS
If you set up your galleries to have name of it the page alias of the page your going to put it in you can use $page_alias where the gallery name goes, but this is going to be something in the template otherwise when putting it in the content edit box of a page why not just use the tag as intended...