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.