Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-02-14 20:42:19

kchau2
New Member
Registered: 2010-02-09
Posts: 7

Image gallery help

Sorry I’m still a Textpattern newbie but basically I am looking to create a gallery page that will have a drop down menu of different club categories. When you click on a specific club category only the images that are related to that club will show up.

What would be the best way to approach this? Different sections for each club?

Offline

#2 2010-02-14 20:49:21

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Image gallery help

kchau2 wrote:

What would be the best way to approach this? Different sections for each club?

Depends on how you want the site as a whole organized. Image galleries based on categories are easy to do. What else do you want on the page with the images? What’s the scope of the site as a whole?


Code is topiary

Offline

#3 2010-02-14 21:09:09

kchau2
New Member
Registered: 2010-02-09
Posts: 7

Re: Image gallery help

The page will only have images in them. Basically I want to create a landing page with a list of galleries.

Offline

#4 2010-02-15 01:21:35

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Image gallery help

To generate your menu use category_list. I’m not sure if by “drop down menu” you mean a select box or a javascript-based menu, but in either case you can get category_list to work for you. For the list you can either specify categories with the categories attribute, or use type="image" to grab all image categories.

You might want to make a “gallery” section. Again, just depends on your design for the entire site. You can use the section attribute in category_list to link to that section.

Generating the galleries: there are various plugin options, but you could also use the core image_index and image_display tags to make your gallery. They aren’t the most flexible but they might be all you need. (I can’t find a single tutorial covering how to use these tags.) Just include both the image_index and image_display tags in your gallery page template.


Code is topiary

Offline

#5 2010-02-15 10:53:05

kchau2
New Member
Registered: 2010-02-09
Posts: 7

Re: Image gallery help

Thank you jsoo!

Last edited by kchau2 (2010-02-15 10:53:25)

Offline

Board footer

Powered by FluxBB