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.

Pagination does not work in tumbler type page

February 28, 2011 1:29pm

Subscribe [1]
  • #1 / Feb 28, 2011 1:29pm

    David Roberts

    250 posts

    Is it possible to have pagination in a tumbler type page?

    If you are outputting different channels within a page say with a limit of 10, I can’t get any pagination to work.

    Like this:

    {exp:channel:entries channel="notebook-entry|notebook-link|notebook-photo|notebook-quote|notebook-video|notebook-main" orderby="date" disable="member_data|categories|pagination" limit="10"}
    
    {if:elseif channel_short_name == 'notebook-quote'}
      <div class="quote">
          <h2><a href="http://{notebook-quote-URL}">{title}</a></h2>
    <p>      </p><blockquote><p>{notebook-quote}</p>
    </blockquote>
    <p>      <span class="source"><a href="http://{notebook-quote-URL}">{journal-quote-source}</a></span><br />
          {notebook-quote-description}<br />
          <span class="date">Posted on <b>{entry_date format="%F %j, %Y"}</b>  <span class="s-toad">{ftimages}/toad-small-b.png</span>  <a href="http://{title_permalink=">Permalink</a></span><br />
      </div><br />
     {if:elseif channel_short_name == 'notebook-photo'}<br />
      <div class="photo"><br />
          </p><h2><a href="http://{title_permalink=">{title}</a></h2>
    <p>      {notebook-photo-upload}<br />
          {notebook-photo-description}<br />
          <span class="date">Posted on <b>{entry_date format="%F %j, %Y"}</b>  <span class="s-toad">{ftimages}/toad-small-b.png</span>  <a href="http://{title_permalink=">Permalink</a></span><br />
      </div><br />
     {if:elseif channel_short_name == 'notebook-video'}


    Version EE 2.1.3

  • #2 / Feb 28, 2011 5:06pm

    Ingmar

    29245 posts

    This is basically just a single tag, pulling 10entries from various channels? If so, regular pagination should be working fine. What have you tried, can you show us a little more of your code?

  • #3 / Feb 28, 2011 5:27pm

    David Roberts

    250 posts

    I have tried this

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

    and this

    {if previous_page}
    <li class="prev"><a href="http://{auto_path}">prev</a></li>
    {/if}
    <li>{pagination_links} of {total_pages}</li>
    {if next_page}
    <li class="next"><a href="http://{auto_path}">next</a></li>
    {/if}
    {/paginate}

     

    Rest of code

    {exp:channel:entries channel="notebook-entry|notebook-link|notebook-photo|notebook-quote|notebook-video|notebook-main" orderby="date" disable="member_data|categories|pagination" limit="10"}
    {if channel_short_name == 'notebook-entry'}
      <div class="entry">
          <h2><a href="http://{title_permalink=">{title}</a></h2>
    <p>      {notebook-entry-summary}<span><a href="http://{title_permalink=">Read More…</a></span><br />
          <span class="mainentry">Posted on <b>{entry_date format="%F %j, %Y"}</b>  </b><span class="s-toad">{ftimages}/toad-small-b.png</span>  <a href="http://{title_permalink=">Permalink</a></span><br />
      </div><br />
    {if:elseif channel_short_name == 'notebook-link'}<br />
      <div class="link"><br />
          </p><h2><a href="http://{notebook-link-URL}">{title}</a></h2>
    <p>       {notebook-link-description}<br />
          <span class="date">Posted on <b>{entry_date format="%F %j, %Y"}</b>  <span class="s-toad">{ftimages}/toad-small-b.png</span>  <a href="http://{title_permalink=">Permalink</a></span></p>
    
    <p></div><br />
     {if:elseif channel_short_name == 'notebook-quote'}<br />
      <div class="quote"><br />
          </p><h2><a href="http://{notebook-quote-URL}">{title}</a></h2>
    <p>      </p><blockquote><p>{notebook-quote}</p>
    </blockquote>
    <p>      <span class="source"><a href="http://{notebook-quote-URL}">{journal-quote-source}</a></span><br />
          {notebook-quote-description}<br />
          <span class="date">Posted on <b>{entry_date format="%F %j, %Y"}</b>  <span class="s-toad">{ftimages}/toad-small-b.png</span>  <a href="http://{title_permalink=">Permalink</a></span><br />
      </div><br />
     {if:elseif channel_short_name == 'notebook-photo'}<br />
      <div class="photo"><br />
          </p><h2><a href="http://{title_permalink=">{title}</a></h2>
    <p>      {notebook-photo-upload}<br />
          {notebook-photo-description}<br />
          <span class="date">Posted on <b>{entry_date format="%F %j, %Y"}</b>  <span class="s-toad">{ftimages}/toad-small-b.png</span>  <a href="http://{title_permalink=">Permalink</a></span><br />
      </div><br />
     {if:elseif channel_short_name == 'notebook-video'}<br />
      <div class="video"><br />
          </p><h2><a href="http://{notebook-video-URL}">{title}</a></h2>
    <p>      <div class="video-container"><br />
              <!-- start of embed code --><br />
              {notebook-video-embed}<br />
              <!-- end of embed code --><br />
          </div><br />
          {notebook-video-description}<br />
          <span class="date">Posted on <b>{entry_date format="%F %j, %Y"}</b>  <span class="s-toad">{ftimages}/toad-small-b.png</span>  <a href="http://{title_permalink=">Permalink</a></span><br />
      </div><br />
    {/if}<br />
    {/exp:channel:entries}

  • #4 / Feb 28, 2011 5:37pm

    Ingmar

    29245 posts

    {exp:channel:entries ... disable="member_data|categories|pagination" limit="10"}

    Notice something?

  • #5 / Feb 28, 2011 5:47pm

    David Roberts

    250 posts

    Oh! That’s what you get for Cut and paste all the time!

    Thanks

  • #6 / Feb 28, 2011 5:50pm

    Ingmar

    29245 posts

    So, you’re good? Working as expected now?

  • #7 / Feb 28, 2011 5:54pm

    David Roberts

    250 posts

    Yes, Thanks.

  • #8 / Feb 28, 2011 5:55pm

    Ingmar

    29245 posts

    Cool. Please don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases