All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Next Tag Skips a Few Entries

Stoyan Vasilev 21 May 2013 21:08 problem, complete

Hi,

We have a site in which the next entry tag skips 2 entries and goes to the 3rd one (instead of going to the next one), but the prev entry tag works just fine. You can see this here: http://hadleywilliams.com/works/line Just press the right arrow once and then the left arrow once (and you will endup in a different place from where you originally started). You can see the order of the set here: http://hadleywilliams.com

Our code looks like this: http://j28.us/temp/low-reorder-1.png

This is EE 2.6.1 running on MediaTemple DV.

Thanks.

Replies

  1. Low 21 May 2013 21:11

    Can you try saving the Set order and clearing the cache?

  2. Stoyan Vasilev 21 May 2013 21:15

    That did it. Thank you!

    Quick question: is there a way to use the next/prev tags inside the channel:entries tag (so that we don't have to open the channel entries tag 3 times like we do in our code above)?

  3. Low 21 May 2013 21:19

    Yes, you can use the prev/next tags inside the channel:entries tag.

    If you do so, use entry_id="{entry_id}" instead of the url_title attribute, and add the prefix="" parameter to avoid variable naming conflicts.

    http://gotolow.com/addons/low-reorder...

  4. Stoyan Vasilev 21 May 2013 22:03

    Great. I'll try that. Thanks!