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.

Comments vs. Entries pagination

March 08, 2010 4:33pm

Subscribe [1]
  • #1 / Mar 08, 2010 4:33pm

    Dennis

    10 posts

    I have implemented a new pagination scheme across my site, but when I place the same pagination code into comments area it breaks the style.

    Current comment pagination:

    {paginate}
                        {if {total_pages} != 1}
                        Page {current_page} of {total_pages} pages {pagination_links}
                        {/if}
                        {/paginate}

    New pagination: (Used for weblog entries)

    {paginate}
                        {if {total_pages} != 1}
                         <div class="pagination">
    
                        {if previous_page}<div class="prev_on"><a href="http://{auto_path}">Previous Page</a></div>{/if}
                        {if {current_page} == 1}<div class="prev_off">Previous Page</a></div>{/if}
    
                        {if next_page}<div class="next_on"><a href="http://{auto_path}">Next Page</a></div>{/if}
                        {if {current_page} == {total_pages}}<div class="next_off">Next Page</div>{/if}
    
                         <div class="pagination-links">{pagination_links}</div>
                         </div>
                        {/if}
                        {/paginate}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases