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 `printTags` simply produces a list of tags but it seems there should be a function that calls tags each linked to a page with the search results for that tag. On that topic, it seems like you should be able to link to search results. At the moment, the URL bar for any given search appears as: `domain.com/index.php?p=search`.
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 `domain.com/tags/hawaii`. It would be brilliant to be able to narrow that down to `domain.com/tags/hawaii+panorama` as well.
Comments
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.
<?php printTags('links', 'Tags: '); ?>
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.
We need to move to 1) A 'get' (URL string) method for Search, and 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.
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.
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.
Being able to use this: domain.com/tags/hawaii would be great.
And flip thru only the photos in that tag like an seperate album would also be great.
Yes I using that right now, but thats not what I was looking for. I would like to be able to go thru the search results as I would in an ordinary album, with the next/prev links.
"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."
That is a great idea!
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!