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.

{paginate}: conditionals

March 14, 2008 11:49am

Subscribe [3]
  • #1 / Mar 14, 2008 11:49am

    nanook

    23 posts

    Hi,

    I am using the {paginate} tag inside {exp:weblog:entries}. I’d like to achieve sth like this:

    < previous page | next page >

    The pipe character (|) I only need when both a previous and a next page are available. So, I thought I’d expand a bit on the documentation and do either this:

    {if previous_page and next_page}|{/if}

    or this:

    {if previous_page != '' and next_page != ''}|{/if}

    Neither works.

    Any clues?

    TIA… Nico

  • #2 / Mar 14, 2008 12:19pm

    nanook

    23 posts

    SOLVED:

    {if previous_page AND next_page}|{/if}

    Whodathunk? 😉

  • #3 / Mar 14, 2008 12:22pm

    Philip Zaengle

    293 posts

    glad you got it figured out 😊

  • #4 / Mar 14, 2008 12:23pm

    Sue Crocker

    26054 posts

    Glad you were able to figure it out.

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

ExpressionEngine News!

#eecms, #events, #releases