php - ExpressionEngine Pagination issue with 2 segments -


i’m building site has following uri structures:

domain.com/case-studies - page loads case studies , pagination works fine there 1 segment.

domain.com/case-studies/residential - uses seg2cat on category_2 load case studies residential. if there more 6, click next page , uri domain.com/case-studies/residential/p6

this totally breaks page , “error, page requested not found”

here pagination code i’m using:

{exp:channel:entries channel="case_study" category="{segment_2_category_id}” orderby=”date” sort=”desc” paginate=”bottom” limit=”6” dynamic=”yes”}  {paginate} <nav> <ul class=”pager”> {if previous_page} <li class=”previous”>← older</li> {/if} {if next_page} <li class=”next”>newer →</li> {/if} </ul> </nav> {/paginate} 

i’m totally stuck, can @ all?

in order work, had set channel entries tag dynamic="no" , set custom template route case studies template /case-studies/{category:alpha_dash}/{page:pagination}

works fine!

andy


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -