Gallery3:Modules:tag albums - Gallery Codex
Personal tools

Gallery3:Modules:tag albums

From Gallery Codex

Tag Albums Module

Creates dynamic albums based on tags.


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 (admin users can specify a specific photo to use for each tag, should they so desire). 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.

To adjust tag links found elsewhere in the Gallery so that they point to the Tag Albums module, install / activate the "Module Order" module (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.

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.


  • Allows visitors to navigate Tags as a series of Sub-albums.
  • Allows users to create dynamic albums containing photos / videos that have been tagged with a specific tag or combination of tags.


This module may be downloaded from the Gallery forums here.

To install, extract the "tag_albums" folder from the zip file into your Gallery 3 modules folder. Afterwards log into your Gallery web site as an administrator and activate the module in the Admin -> Modules menu. Once activated you will be able to position the sidebar from the Admin -> Appearance -> Manage Sidebar screen and configure the sort order of the Tag Albums page from the Settings -> Tag Albums Settings page.

To link an album to a dynamic page, follow these steps:

  • Create a new album.
  • Select Album Options - Edit Album. You'll see a drop down box that says "Display items that contain ANY of the following tags" / "Display items that contain ALL of the following tags", select one of these options and then list on or more tags in the box directly below it. If this second box contains just a "*" instead of a tag, the album will re-direct to the "View Tag Albums" screen.

To Set / Change a Thumbnail:

  • Log in as an admin (this option is not available to non-admin users).
  • Click into the all tags page and select the tag you want to set a specific thumbnail for, OR click into a dynamic album that you what to set / change the thumbnail of.
  • Click on the photo you want to use as the thumbnail.
  • From the photo view page, click the "Photo options -> Choose as the tag album cover" menu option (Note: do not confuse with the "Photo options -> Choose as the album cover", make sure it's the one that says "tag" or you'll change the wrong thumbnail).
  • You should now see a message stating the the album thumbnail has been changed to the current photo's thumbnail.