We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

I've never been able to get pagination to work?!!?!?

How Do I?

Phil J Leitch's avatar
Phil J Leitch
92 posts
9 months ago
Phil J Leitch's avatar Phil J Leitch

using code straight from the documentation and no pagination shows up. in the past when it hasn’t worked it was never a big deal, this time however i’d really like to use it.

I have no clue what i’m doing wrong.

{exp:channel:entries channel="1000_albums" paginate="bottom"} {1000_albums_cover_image} {url} {/1000_albums_cover_image}

<h2>{1000_review_album_title}</h2>
<h3>{1000_albums_review_band_name:value}</h3>

<div class="review">
    {1000_albums_review_copy}
    <div class="rating">{1000_albums_review_rating_1_10:from}/{1000_albums_review_rating_1_10:to}</div>
</div>

{paginate}
    {if previous_page}
        <a href="http://{auto_path}">Previous Page</a> &nbsp;
    {/if}
    {if next_page}
        <a href="http://{auto_path}">Next Page</a>
    {/if}
{/paginate}

{/exp:channel:entries}

       
Rob Allen's avatar
Rob Allen
3,105 posts
9 months ago
Rob Allen's avatar Rob Allen

What EE version are you on?

Can you try the detailed pagination tag to see if this works?

{paginate}
  {pagination_links}
    <ul>
      {first_page}
        <li><a href="http://{pagination_url}" class="page-first">First Page</a></li>
      {/first_page}

      {previous_page}
        <li><a href="http://{pagination_url}" class="page-previous">Previous Page</a></li>
      {/previous_page}

      {page}
        <li><a href="http://{pagination_url}" class="page-{pagination_page_number} {if current_page}active{/if}">{pagination_page_number}</a></li>
      {/page}

      {next_page}
        <li><a href="http://{pagination_url}" class="page-next">Next Page</a></li>
      {/next_page}

      {last_page}
        <li><a href="http://{pagination_url}" class="page-last">Last Page</a></li>
      {/last_page}
    </ul>
  {/pagination_links}
{/paginate}
       
Phil J Leitch's avatar
Phil J Leitch
92 posts
9 months ago
Phil J Leitch's avatar Phil J Leitch

i just updated to the most current version(7.5.9 i think) this morning while working on this.

i will give this a try and see what happens.

thank you ?

       
Tom Jaeger's avatar
Tom Jaeger
449 posts
9 months ago
Tom Jaeger's avatar Tom Jaeger

You can also get a quick working version of this by using the generators in

Templates -> Template Generator

Make sure to choose “listing for all entries” and “Entry detail page”

Then after their generated, if you go to the index in the new template group, and add a limit=”1” to the channel entries tag, you should have a quick easy example of pagination.

Cheers,

-Tom Jaeger

? 1
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.