0

I am having trouble finding a way to get the next entry from an article. With the way that my URI is set up.

For example, I have the URL http ://www.*.com/learn/[channel]/[url_title]. I use the exp:channel:entries tag with the channel parameter set to segment_2 and the url_title parameter set to segment_3(I understand that segment_2 is not really needed to get the results I am after). This displays the article I requested. However, the exp:next_entry tag will not work unless the actual channel is in segment_1.

I have tried other plugins such as Advanced Prev Next Entry, but I have requirements that these don't meet, such as compatibility with Channel Images.

My ultimate goal is to be able to reproduce an experience like this.

Any help on how to find the next entry would be fantastic.

1

Have you tried the built in Pagination?

{exp:channel:entries channel="article" orderby="date" sort="desc" limit="1" paginate="bottom" } {title} {article_details..etc} {paginate} {if next_page} Next Page {/if} {/paginate} {/exp:channel:entries}

1
  • Good thought, except that I would need access to a couple of the channel fields from the next entry such as Title and Channel Images. – Lucas JD Dec 9 '13 at 22:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.