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.

The Architecture of Pagination...

December 29, 2008 4:53pm

Subscribe [1]
  • #1 / Dec 29, 2008 4:53pm

    fireproofsocks

    51 posts

    Use of the {paginate} tag works… but it gums up the ability to get certain articles out of a weblog…

    e.g. with pagination, you might end up with links like this:

    mydomain.com/index.php/articles/P10/

    But that creates a problem when you want to get to specific weblog entries via the segment_2…

    mydomain.com/index.php/articles/a_specific_article/


    You can’t just do this because it won’t know the difference between the above 2 urls… say you’ve got this in your article/index template:

    {if segment_2}
        {embed="article/show_specific_article"}
    {if:else}
        {embed="article/view_all_with_pagination"}
    {/if}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases