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 Pagination?

December 21, 2008 7:44pm

Subscribe [3]
  • #1 / Dec 21, 2008 7:44pm

    TristanM

    8 posts

    Hello everyone.

    I’ve done some searches here as well as in the Knowledge Base, however I can’t find an answer.  My apologies if I missed it and am wasting someone’s time.

    I would like to limit an Archive list to a specified amount and add pagination links.

    So basically, by visiting a page, instead of having a very long list of every single post, you’d limit to a specified amount and there’d be the pagination links at the bottom to get to all of the posts.

    It’s because I’m using a static web page design and if all the items are listed, it’ll break the site.

    I removed the disable pagination in the archives tag, but no page links appear… and when I add the pagination link, it doesn’t display properly in the site (shows the code).

    Any help would be appreciated.  Thank you kindly.

  • #2 / Dec 22, 2008 12:25am

    Arun S.

    792 posts

    By “archives tag”, which tag are you referring to specifically? Archive Month? Category Archive?
    Can you post the relevant code to this bit of functionality.

  • #3 / Dec 22, 2008 4:53pm

    TristanM

    8 posts

    I only have one category for this site.  So, instead of an archive page which contains all the titles broken down by category and/or date, I only want a list by date of the posts, with pagination at the bottom…

    So I’ve got something very simple like:

    {exp:weblog:entries orderby="date" sort="desc" limit="10" disable="custom_fields|categories|member_data|trackbacks"}
    
    <ul>
    <li><a href="http://{title_permalink=">{title}</a></li>
    </ul>
    
    {/exp:weblog:entries}

    However when I add the {pagination} tags under this, they show up as the code… not actually pagination links.

  • #4 / Dec 30, 2008 8:00pm

    TristanM

    8 posts

    I know it’s the holidays and so most people are busy… however I thought I’d check again to see if anyone can help me with this, as I still have not figured it out on my own.

    Thanks everyone.

    😊

  • #5 / Dec 30, 2008 8:37pm

    lebisol

    2234 posts

    {exp:weblog:entries ....
    ...
    {paginate}
    Page {current_page} of {total_pages} pages {pagination_links}
    {/paginate}
    {/exp:weblog:entries}

    this is not being processed???

  • #6 / Dec 30, 2008 11:06pm

    TristanM

    8 posts

    I didn’t have the paginate tag inserted properly… it was outside the parent tag.

    That does work.

    Thank you very much.

  • #7 / Dec 31, 2008 12:59pm

    lebisol

    2234 posts

    Nice, glad it was an easy fix.
    All the best!

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

ExpressionEngine News!

#eecms, #events, #releases