NeoGallery problem - how do I set the gallery dynamically?
Posted: Mon May 18, 2009 10:28 am
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:
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:
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
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}
Code: Select all
{NeoGallery gallery=get_content_props fields='extra3'}
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