Filter an entire gallery based on keyword, keeping structure intact?

zpyder

Joined: 2010-08-05
Posts: 3
Posted: Mon, 2010-08-30 09:40

Hi all

I've had a quick look and not seen anything that quite answers my question. My level of coding knowledge is very basic, so before I start looking into this in too much depth I thought I'd ask for some guidance or clarification whether this is possible.

The site in question is www.microphoto.co.uk - I am currently in the process of photographing a university insect collection and putting it on the site. The site uses drupal with a gallery module to display the gallery within drupal.

I would like to be able to do something with keywords, so that I can add a keyword for each image that specifies the source of the image / collection it is from. And then on the site have links like "xxx collection", which when clicked views the gallery in its current form but with all images & albums that weren't from that collection filtered out.

My understanding of the keywords as they are is that searching for a keyword would just bring up a results page, without keeping the album structure in place?

Any help that can be offered will be very much appreciated!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2010-08-30 11:52

Gallery has built-in keyword handling, just install the Keyword Album module.

Also the more robust Tags module may work better.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
zpyder

Joined: 2010-08-05
Posts: 3
Posted: Mon, 2010-08-30 13:40

Hmm, thanks for that. Keyword album is great, but not what I am after. For example I may have an album with 10 photos in it, 5 of which have a keyword I want to show. I want the album to be visible and when I click on it, only show those items with the keyword.

As to the tags module, I'll have to look into this a bit more.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2010-08-30 18:21

If you click the keyword, it should open a virtual album containing items with that keyword.

I have an example keywords are similar to the tags, when you click the tag "luxury", all cars with that tag display in a virtual album.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
zpyder

Joined: 2010-08-05
Posts: 3
Posted: Mon, 2010-08-30 21:51

Thank you for your continued help. Unfortunately it's not so much the items I want to bring up, as the structure. Everything is organised taxonomically with albums in albums to represent different groups, such as:

food
-meat
--chicken
--beef
-vegetable

etc

I'm after a way where say I want to show only "british" items (british beef, british chicken etc) The results page will look exactly like the normal gallery, but only those albums with items, and items with the british tag will be visible. Basically I want to be able to have multiple instances of the gallery but only showing certain content based on a string?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2010-08-30 22:35

Never tried, but albums can have keywords as well, edit album -> general tab -> Keywords -> "Keywords are not visible, but are searchable."

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2