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 Not working on Single Entry view

March 19, 2011 5:14pm

Subscribe [2]
  • #1 / Mar 19, 2011 5:14pm

    Jonathan Miller

    5 posts

    I am building a portfolio section for a site, when you click on one of the entries it takes you to a detail page. On the detail page I need a Prev/Next navigation that will allow for moving from one post to the next.

    So my url goes like this: /work/detail/some_entry_name/


    My pagination markup looks like this:

    |ul|
      {paginate}
      {if previous_page}
          |li| |a href=”{auto_path}”| previous |/a| |/li|
          {/if}
          {if previous_page AND next_page}
          |li|  |  |/li|
          {/if}
          {if next_page}
          |li| |a href=”{auto_path}”| next |/a| |/li|
          {/if}
      {/paginate}
    |/ul|

    I read in a comment that the pagination needs to be outside of the exp:weblog:entry tag, so currently I do not have it encapsulated in any other ee code.

    Help?

    PS: I had to replace the greaterthan lessthan chevrons because EE apparently has anti-spam rules in place that restrict non paying members from posting “links”. Which is stupid and retarded, but hey, I guess if they want to be like that, that is their choice.

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

ExpressionEngine News!

#eecms, #events, #releases