Module: Tag Albums
|Posted: Fri, 2011-05-06 00:06|
Here is the initial version of my Tag Albums module. It can be downloaded from this thread, or from my account on GitHub. This release has been tested against Gallery 3.0.1 with the default Wind theme only. Newer versions of Gallery and other themes may not work or may not work as well.
Tag Albums has several features. When first installed, it will provide a sidebar link labeled "View Tag Albums". This link will allow visitors to the Gallery to browse through a list of all the tags. This list resembles separate sub-albums, one for each tag. Cover art for each "virtual album" is taken from the most recently uploaded photo/album/video for each tag. The photo pages that are accessed from within these "virtual albums" have been modified so that the previous / next buttons navigate within the virtual album instead of the album the photo is actually in, and "fake" breadcrumbs are created to further the illusion that the user is in a real album.
Additionally, the module allows for real albums to be linked to the "View Tag Albums" page, via the edit album dialog so that when a user clicks into a specific album, they will be directed to the tag albums page instead of the albums contents.
In addition to linking an album to the "View Tag Albums" page, this module also allows for albums to be linked to specific tag sub-albums or to virtual albums generated from combinations of tags. These virtual pages maintain breadcrumbs and previous / next buttons that maintain the appearance of being in the original album and copy the title, description, sort order from the album that linked to the page.
To link an album to a dynamic page, follow these steps:
To adjust tag links found elsewhere in the Gallery so that they point to the Tag Albums module, install / activate the "Module Order" module ( http://codex.gallery2.org/Gallery3:Modules:moduleorder ), then select Admin -> Settings -> Module order and move "Tag Albums" above Tags. This will cause all tag links (including the All Tags module) to point to Tag Album pages (Warning: Only tested with Gallery 3.0.1).
|Login or register to post comments|