Memorial Day
Support will be closed on Monday, May 28th, 2012 to enjoy Memorial Day with our friends and families.
   
 
creative channel next/prev link use
Posted: 09 February 2012 11:03 PM   [ Ignore ]  
Summer Student
Total Posts:  11
Joined  05-10-2011

Let’s assume for this that I need the various url paths to stay as they are, and don’t have flexibility to restructure.

I have a template, “/report/editorial”, that is responsible for alternately displaying an archive or single entry view, based on the remaining segments. If segment_3 == “article”, it displays the single page entry based on segment_4. The channel entry tag for single entry has dynamic=“no” and url_title=”{segment_4}”. All of this works fine, except for the exp:channel:next_entry and exp:channel:prev_entry tags. Their only parameter set is channel=“editorial”. In this setup, neither next_entry nor prev_entry works. If I remove the check for segment_3 == “article” and just treat segment_3 as the url title for the single entry page, the pagination works properly, which suggests some kind of dependency on the path?

Is there any way I can maintain my /report/editorial/article/{url_title} structure, and have single page pagination work properly?

Thanks!

Profile