ZenphotoCMS Forum
clickable tags - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: clickable tags (/thread-1845.html)



clickable tags - benjancewicz - 2007-11-25

Is there a way to make the tags clickable?

For example, if a picture has "X, Y, Z" as tags, is there a way to click on X, and have all the other pictures tagged with X come up?




clickable tags - aitf311 - 2007-11-25

The nightly build has this on by default, try it out here: http://www.zenphoto.org/files/nightly/

(nothing new is needed to your theme)




clickable tags - benjancewicz - 2007-11-25

Gotcha.

Ok. I installed that version, but when I click on the link, I get a "Not Found" page.

Take a look (the first image has tags): http://zerflin.us/ZenPhoto/index.php?album=benjaphotos




clickable tags - sbillard - 2007-11-26

There is a typographical error in the printTags function in template-functions.php. In the version I am looking at it is line 1548 and reads $links1 = "";

It should read $links1 = ""; The character after the two single quotes should be a comma.




clickable tags - benjancewicz - 2007-11-27

Alrighty... I made that change, reuploaded, and it still doesn't seem to be working.




clickable tags - acrylian - 2007-11-27

Sorry, you are right, there is still an error in the line sbillard mentioned, but it's easily corrected:
$links1 = "";

Detete the WEBPATH and it should work.




clickable tags - benjancewicz - 2007-11-28

Bingo! That did it! Thank you both!

So, a few questions:

  1. How the devil did you find that?
  2. What is a "Nightly Build"?
  3. Why isn't this just in the regular ZenPhoto download?



clickable tags - acrylian - 2007-11-28

  1. Well, I searched...:-)
  2. The nightly is generated each night from the svn (our subversion (number), the working in progress version), it's mainly stable preview version.
  3. Well, that would be sort of 1.1.2.1....We prefer to finish a few more things before releasing 1.1.3. We just don't want to update little pieces here and there.



clickable tags - benjancewicz - 2007-11-28

Gotcha.
Thanks so much, you guys are brilliant.

How many of you are there working on this, and are there other projects that you've built?




clickable tags - sbillard - 2007-11-29

http://www.zenphoto.org/trac/wiki/Team

As a group we are working only on zenphoto. I'm sure that each individual has been involved in many other projects. The other photo oriented project I am involved in is QuadtoneRIP http://www.quadtonerip.com/html/QTRoverview.html




clickable tags - Stephane - 2008-06-14

I can't get get linked tags to work in my theme, am I doing something wrong? I'm using 1.1.6 but printTags() returns just a simple list of tags.




clickable tags - acrylian - 2008-06-15

You have to be logged out to get links.




clickable tags - Stephane - 2008-06-15

Thanks acrylian, that was it! Can I ask why it displays differently when you're logged in?




clickable tags - acrylian - 2008-06-15

You can edit the tags inline by clicking on them if you are logged in. If those were links that would be a little difficult..:-)




clickable tags - Stephane - 2008-06-15

That's makes sense. I'm also questioning the necessity of the line `that is printed at the end whenprintTags()` is called. It seems like this should be left to the theme.




clickable tags - acrylian - 2008-06-15

That is actually because the tags are listed next to another and not as the normal list. If you use it with a normal list css then this br should not do anything, but if you do you don't need to care about the the resetting of the float.
But actually you are somehow right...




clickable tags - Stephane - 2008-06-15

Perhaps there should be a way to call printTags() as simple text with separators rather than a
``?




clickable tags - acrylian - 2008-06-15

Semantically a list of tags is, well, a list. But there is already a way: http://www.zenphoto.org/documentation/zenphoto/_template-functions.php.html#functiongetTags
(it says "list" but it actually returns an array)

Looking at the documentation helps sometimes...:-)