![]() |
|
Making the most out of 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: Making the most out of tags (/thread-1788.html) |
Making the most out of tags - Stephane - 2007-11-10 Hi! I've been playing around with the new release, impressive work guys! The new version has put me in the mood to rework Effervescence. I'm very excited about the implementation of tags but it's hard for me to tell what can be done with them in their current state. Calling Is there a way to permalink to search results? I would also like to see the images tagged with a particular term appear as an album with a cruft-free URL like Making the most out of tags - aitf311 - 2007-11-10 printTagsAs() is the function you would be interested in. You can print them as a list or cloud. The default theme uses the cloud on the archive page. Both of these output views link to the search page like you want. Making the most out of tags - Stephane - 2007-11-10 The printTagsAs() function doesn't exist (it should!), but printAllTagsAs() does. Incidentally, that function doesn't seem to return anything on my installation. Making the most out of tags - sbillard - 2007-11-10 Stephane: PrintAllTagsAs() emits the html for the tags. You can create a sort of album if you want. the URL would be ..../page/search?words=hawaii You might be able to create a mod_rewrite rule that does this. If you get it to work, let us know what you did. Otherwise, put a ticket into the trac for the feature. Making the most out of tags - aitf311 - 2007-11-10 is what we are using to print a tag cloud in the default theme Making the most out of tags - Megan - 2007-11-13 That didn't work for me on the image page but this does: The function to do that was built in to he printTags function using the $option variable to add the link tags. This way you get a linked list of tags but not a cloud (I didn't want a cloud there, just a list). Would PrintAllTagsAs be for all tags in the gallery whereas printTags is the tags for a specific image? That seems to make sense from what I can see (with my limited PHP skills...). The PrintAllTagsAs function also has a 'list' option, which would give you what I wanted above (linked list, not a cloud) for all tags. Making the most out of tags - aitf311 - 2007-11-13 What I printed before can go on an album, index or archive page. You are correct that printTags() is limited to the image and album pages. Tags were one of the last things we got put into 1.1 so more work is needed on displaying and updating them but we mostly wanted to get it to the point where people could at least start adding them and all of the display options were kind of a last minute bonus acrylian cooked up. Making the most out of tags - trisweb - 2007-11-13 Just to go back to what Stephane was saying, I think We need to move to 1) A 'get' (URL string) method for Search, and 2) A specific tag-only listing function or page, so Following that, the rewrite rules to make those permalinks happen will be easy. We also need to refactor the database schema for tags to make listing by tag more plausible, but that's also not hard. Making the most out of tags - Stephane - 2007-11-15 Tristan, I agree, a tags.php page could be useful and have a different purpose from search.php. I really like the way Metafilter handles tags. For instance if you go to the photography tag you can quickly find cross-references with other topics by clicking on the '+' next to them. I don't have the PHP skillz to code this kind of stuff, but a powerful system for tags and searching EXIF would make zenphoto very hard to compete with. Making the most out of tags - dinc - 2007-11-16 Tristan and Stephane, I agree, it would be really sweet to see a tags link. Right now Zenphoto gets all the tags from my photos thru IPTC Keywords and puts them into tags, which is great. The thing is that I've only put people in these keywords. Because I had an idea that I would make the kind of links that we are talking about here. For example, I would go to one person and get all photos with this person in the tag field only, but right now I have to do a search and then I won't be able to use the next/prev links when browsing one of those photos. Because I want to be able to browse only the photos of this tagged person, like a seperate album. Being able to use this: domain.com/tags/hawaii would be great. Making the most out of tags - aitf311 - 2007-11-16 dinc to get a list of all your tags as links do this, printAllTagsAs('links') Making the most out of tags - dinc - 2007-11-16 aitf311: "2) A specific tag-only listing function or page, so domain.com/tags/hawaii only contains things tagged 'hawaii' and not things with 'hawaii' in the description as well." Making the most out of tags - trisweb - 2007-11-16 Dinc, I got you. That is definitely a necessary feature to make tags really useful as your example showed. Basically, we want to be able to define an "album" that is a group of search criteria (whether it be keywords, tags, or combinations) and then be able to use next/prev to browse it. This still requires refinements in the tag database schema to make it work faster and easier, those will come in 1.2. For now the simple tag model will have to work, but at least it's there in some form! Making the most out of tags - aitf311 - 2007-11-17 Some tag improvements will be in tonights build if anyone wants to check it out. printAllTagsAs('cloud') and printAllTagsAs('links') will both only search the tags now, no more searching the title/description Making the most out of tags - typenerd - 2008-09-26 Does anyone have any code that would help me get started creating a tags.php page? Making the most out of tags - acrylian - 2008-09-26 What excatly should that page do? Making the most out of tags - picture-pete - 2008-10-24 mydomain.com/tags would be a great idea. But please make an option to search just the tags or also the title / description. Because i often have tags in my title that dont appear in the tags again and it would be great to list those images too. Making the most out of tags - acrylian - 2008-10-24 @picture-pete: You are new to Zenphoto, aren't you? You have already the option where to search on the admin options and you also can set that for each dynamic album. |