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.

Using Pagination outside of the {exp:weblog:entries} tag

May 28, 2009 7:44pm

Subscribe [1]
  • #1 / May 28, 2009 7:44pm

    Mark A. Klassen

    17 posts

    I’m working on a site right now and this is what I have for displaying some posts.

    <ul>
    {exp:weblog:entries weblog="press" orderby="date" sort="desc" limit="4" paginate="bottom"}
       <li> 
            <a href="http://{path=press/entry}">{thumb_image}</a>
            <a href="http://{path=press/entry}" class="press-date">{entry_date format="%F %Y"}</a>
       </li>
    {/exp:weblog:entries}
    </ul> 
    {paginate}
    <div id="press-scroll-container">
         {if previous_page}<a href="http://{auto_path}" class="press-scroll-previous"></a>{/if}
    
    <div id="press-scroll-divider"></div>
        {if next_page}<a href="http://{auto_path}" class="press-scroll-next"></a>{/if}
    {/paginate}
    
    </div>]

    The element only has room for 4 posts per a page so thats why I need to use pagination. The problem is, my entries are being displayed in a list and adding pagination to the list messes up the styling/layout of the page. Is there a way I could get around using the paginate tag outside of the entries tag?

  • #2 / May 28, 2009 7:51pm

    Lisa Wess

    20502 posts

    The paginate tag should be inside the entries tag…. Not outside.  See the pagination docs.

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

ExpressionEngine News!

#eecms, #events, #releases