Extension, Module

Archived
Forum
(read-only)

Zoo Triggers

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From ExpressionEngine Zoo

     

Pagination not working

Support Request

Clearbytes
Clearbytes

Using:
Zoo triggers - 1.2.5
Structure - 3.3.14.6

When on a category page the pagination link is fine:
e.g. /news/category/marketing/P1

But when I’m on the paginated page it loses the category:
e.g. /news/P0


This is my query:

{exp:channel:entries channel="news" limit="1" dynamic="no" {triggers:entries} paginate="bottom"

And pagination:

{paginate}
   
<div id="pagination">
    
{if previous_page}
     
<class="btn" href="{auto_path}">Previous</a>
    
{/if}
  {if next_page}
   
<class="btn" href="{auto_path}">Next</a>
   
{/if}
   
</div><!-- end pagination -->
{/paginate} 

Anything I can try?

Thanks

Simon

 

KentonQ
# 1
KentonQ

I am having the same issue. Pagination links are not working when on a paginated page.

Clearbytes
# 2
Clearbytes

This is my work around… may help you out:

{if triggers:segment_2 =="category"}

{exp
:channel:entries channel="news" limit="6" dynamic="off" {triggers:entries} paginate="bottom" paginate_base="{segment_1}/{triggers:segment_2}/{triggers:segment_3}"
 
{if
:else}

{exp
:channel:entries channel="news" limit="6" dynamic="off" {triggers:entries} paginate="bottom"
 
{
/if} 
KentonQ
# 3
KentonQ

Thanks, Simon. That’s a good work around.