Member
Member
csx   2008-01-22, 21:08
#1

I'm running a script on my index.php page to find albums tagged with the word "featured" but the script doesn't seem to grab the sub-albums that are tagged. Is there a way to check the sub-album tags along with the top level albums?

`

`

`

     ">



  `

  `

     ">





     `

  `

  `

``

`

`

--> Thanks to BertSimons for writing the original script.

Administrator
Administrator
acrylian   2008-01-22, 21:26
#2

There is a function called printAllTagsAs() function which prints either a list or a tagcloud of all tags in your gallery. If you need something special you could make a custom function out of that.
And take a look at the functions guide: www.zenphoto.org/documentation

Member
Member
csx   2008-01-22, 22:15
#3

hmmm... thanks for the hints, but unfortunately I not too familiar with writing anything php.

I found the function getAllTags(), but it didn't seem to pull anything.

Administrator
Administrator
acrylian   2008-01-23, 10:30
#4

If you would take the time to read the documentation on www.zenphoto.org/documentation you would read this about getTags():
"Returns a list of tags for either an image or album, depends on the page called from"
So this returns the tags of the current image or album. If you want all tags used in your gallery use printAllTagsAs()

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.