Display image Tags on Album page

Hi

I am having difficulty in displaying image tags on the album page - any help in pointing me in the right direction would be really appreciated.

Ultimately I want to create a function to retrieve the image tag (whilst on the album page) but only to print a certain part of the tag... example:

a tag = Species Name (Latin Name) Photographer name

I would only want the tag to be everything before the first open bracket e.g. to print out Species name (which could be anything up to 3 words long, so can't use php to limit charecters or just first word)

Ps: - Im going to post some advice on exporting large Gallery3 set up over to Zenphoto using the Nirvana script....I think people will find it useful.

Comments

  • acrylian Administrator, Developer
    1. That's actually not really a Zenphoto specific question, isn't it? Is "Species Name (Latin Name) Photographer name" how your tags are named exactly? You could explode the tag based on its spaces into an array (search for explode() on php.net) but that will get you into trouble since a photographer oer specicies name could contain several. So you would need to explode on the both brackets.

    Better would be to follow a naming convention like so you better can see what part is what. For example:
    "my-species_latin-name_a-photographer"

    Because of the underscores you can easily explode it into three parts species, latin name and photographer. Yo ucan then further easily remove the divis and/or uppercase the names easily.

    2. The gallery import sounds interesting. If you can best post on your own site so we can link to it.
  • Thanks for the reply - yes the specifics of how to explode the tags into component parts is not a Zenphoto question, but I appreciate the comments.

    Is it possible to display image tags on the album page? For example, under each image on the album page will be the species name (latin name) Photogrpher name

    Im fine ot get this to work on the photo page, but not on the album page. any help?
  • acrylian Administrator, Developer
    To display tags from a specific image or all you can use the tags_extras plugin. Generelly for all those custom things therer is the object model base of Zenphoto.
Sign In or Register to comment.