NeoGallery problem - how do I set the gallery dynamically?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
memerson
Forum Members
Forum Members
Posts: 14
Joined: Mon Mar 23, 2009 5:03 pm

NeoGallery problem - how do I set the gallery dynamically?

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

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

Post 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...
Post Reply

Return to “Modules/Add-Ons”