I am currently building a site with Expression Engine.
I have just put some pagination on my news pages. This works perfectly. However the pagination appears on the entry pages and I do not want it to.
I tried
{if segment_3 == “”}
{paginate}
Page {current_page} of {total_pages} {pagination_links}
{/paginate}
{/if}
which removed it from the entry page… however this also removed it from all of the list pages… as P1/P2 etc will appear as segment_3..
any ideas?
Cheers
Dave
Grab the Switchee plugin, then do this:
Although generally I’d suggest using separate templates for your entry list and single entry views. It’s more keeping with how EE was designed, and will cause fewer problems down the road for you if you want to add things like category filtering, or filtering via third-party data (like tags, etc). You can use snippets to avoid duplicating Channel Entries “loop” code.