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.

how to add gallery category pagination

November 14, 2007 4:44pm

Subscribe [1]
  • #1 / Nov 14, 2007 4:44pm

    bobh

    145 posts

    I’ve been waiting for this functionality for months and now I find out someone has a solution, so lisa, she’s all yours 😊

  • #2 / Nov 14, 2007 5:16pm

    Lisa Wess

    20502 posts

    Open up your categories display template - I use my index.

    Find {/exp:gallery:entries}

    Place this code right before it:

    {paginate}
    Page {current_page} of {total_pages} pages {pagination_links}
    {/paginate}

    *grins*

  • #3 / Nov 14, 2007 6:21pm

    bobh

    145 posts

    oh lisa :( you got my hopes up for nothing? I knew this reaction looked familiar: http://ellislab.com/forums/viewthread/55770/#273824

  • #4 / Nov 14, 2007 6:31pm

    Lisa Wess

    20502 posts

    Bob - you simply asked how to paginate gallery categories, I gave you code to do that.  You actually want to paginte the gallery categories list, which is quite a bit different.  You could do that using the query module as it has pagination, of course.

  • #5 / Nov 14, 2007 6:47pm

    bobh

    145 posts

    well actually, you just gave me code for paginating gallery entries, not categories. there is no {exp:gallery:entries} tags in the categories display template.

  • #6 / Nov 14, 2007 6:55pm

    Lisa Wess

    20502 posts

    Gallery entries are shown per category when the category is specified within the URL.  I use the index template to show my gallery entries by category, but it has C12 or whatever appended in the third segment. That means that gallery categories are paginated.

    You’re right, though, we’re both being a bit unclear in wording.  I’m paginating the list of entries when limited by category; from what you’re saying, you want to paginate the category list.

  • #7 / Nov 14, 2007 7:00pm

    bobh

    145 posts

    haha, I don’t think we’ll ever see eye to eye on thisone 😊

    that being said, I hope you might still be willing to give me a little push in the right direction on how to create pagination using the query module? the wiki and the forums are giving me nothing.

  • #8 / Nov 14, 2007 7:07pm

    Lisa Wess

    20502 posts

    Bob, before I do that - we need to see eye to eye on this.  What, exactly, is the display you are after?  Can you provide a link/screenshot/text description?

    Is it something like:

    Viewing category: apples

    apple 1
    apple 2
    apple 3

    Page 1 | Page 2 | Page 3

    Where Page 2 would have apple 4 5 6?

    Or is it:

    View a list of categories:

    Apples
    Oranges
    Bananas

    Page 1 | Page 2 | Page 3

    Pomegranates
    Strawberries
    Cherries

    ?

  • #9 / Nov 14, 2007 7:24pm

    bobh

    145 posts

    ok, this should do it:

    Viewing category: apples

    apple 1
    apple 2
    apple 3

    Page 1 | Page 2 | Page 3

    this is entries pagination (where each apple represents an image), used within {exp:gallery:entries} tags.

    I’m using it here.

    View a list of categories:

    Apples
    Oranges
    Bananas

    Page 1 | Page 2 | Page 3

    this is category pagination, used within {exp:gallery:categories} tags, and what I’m hoping to achieve on this page.

  • #10 / Nov 14, 2007 7:45pm

    Lisa Wess

    20502 posts

    Ok, so which of the two above scenarios do you need assistance with? My code will work for the former. For the second one, you’ll need a query, and you can just use limit and the paginate tags before {/exp:query}.

  • #11 / Nov 14, 2007 8:18pm

    bobh

    145 posts

    the second one 😊

    aaaand, SUCCES!!

    thank you so very much lisa! I just did a little dance in your honor.

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

ExpressionEngine News!

#eecms, #events, #releases