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.

Displaying paginated exipred Entries

September 14, 2011 6:40pm

Subscribe [1]
  • #1 / Sep 14, 2011 6:40pm

    Joff

    28 posts

    I’d like to create a page displaying only expired Entries, but having problems when it comes to paginating the results as my current solution still returns the current Entries.
    I’ve taken some inspiration from an old EE1 thread: http://ellislab.com/forums/viewthread/87987/ to conditionally exclude current Entries from the exp:channel:entries loop:

    {exp:channel:entries channel="news" show_expired="yes" dynamic="no" limit="4" paginate="bottom"}
    
    {if current_time > expiration_date && expiration_date}
    {title}
    <hr>
    {/if}
    {paginate}
    Page {current_page} of {total_pages} pages {pagination_links}
    {/paginate}
    {/exp:channel:entries}

    Is there a way to accomplish the above so that the pagination shows only the expired Entries? 
    Any help appreciated, thanks!

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

ExpressionEngine News!

#eecms, #events, #releases