ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

category filtering and photo gallery questions?

June 29, 2007 8:20am

Subscribe [1]
  • #1 / Jun 29, 2007 8:20am

    togetherdigital

    2 posts

    Ok, I’m a bit of an EE noob so bare with me. I’ve created my first site with EE and it’s looking pretty good I think but I have a few tweaks I need to make in the gallery section.

    1. On the home page of http://www.trimgaa.ie I’m trying to list the latest 6 photo gallery categories that link directly into those categories (see the middle column at the bottom of page). However, I cannot seem to limit the results. I’m getting all categories instead of the most recent 6 categories. Here’s my current code:

    {exp:gallery:categories gallery="{gallery_name}” orderby=“date” rows=“6” columns=“1”}

    and I’ve tried:

    {exp:gallery:categories gallery="{gallery_name}” orderby=“date” limit=“6”}

    Any suggestions?


    2. On the gallery main page (http://www.trimgaa.ie/gallery/), I’m displaying all the galleries. Is there a way of displaying a thumbnail of one of the photos in this gallery? I can’t seem to find a way to do it!


    3. On the news section of the site (http://www.trimgaa.ie/news/), I want to put in a category filter in the top right hand corner. How do I put in links up there so that when clicked, they only show me the entries within that category? I currently only have an index and entry template in that template group. Do I need a category page as well with the filter in it? What would be the EE code for displaying a list of entries in a weblog for a particular category? Can I just amend the current index template to use a filter so that I could use a link like http://www.trimgaa.ie/news/C01 ????


    Any help would be greatly appreciated!

    Rgds,

    Dave

  • #2 / Jun 29, 2007 11:15am

    Lisa Wess

    20502 posts

    Hi, Dave!

    1. Those parameters aren’t available to that tag. It’s a pure output of all of your categories, no rows or columns, nor limit. 

    2.  Yes, what code have you tried here?

    3.  Is this for the weblog module or the gallery module?  Have a look at this kb article.  The way it works is that the weblog entries tag restricts information by whats in the URL - since it sees the category indicator and name in the URL, or the category ID, then it knows you only want entries in that category.  So you can use the index to show these, or if you want them to show differently (say just titles) then another template may be more appropriate. It’s up to you. =)

  • #3 / Jun 29, 2007 2:33pm

    togetherdigital

    2 posts

    Hi Lisa. Thanks for coming back to me. In response:

    1. Is there another tag I could use to do this? Surely there is a way?

    2. I couldn’t find a way to do it. Can you point me in the right direction?

    3. This is for a weblog module and NOT the gallery module. I’ll have a look at that article but I think that answers that. I’ll have a play with it.

    Thanks again for your help so far! 😊

  • #4 / Jun 29, 2007 2:36pm

    Lisa Wess

    20502 posts

    What kind of output do you want, David?  If you can describe it, or even show a diagram in the post, that will surely help. =) But if you need more control over it, I’m probably going to end up suggesting a query, and you can see an example of how you would begin to handle that here, though you’ll need to tweak it to your satisfaction.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases