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

Support archive

Next Entry Tag - Issues

Lyles Armour 3 Dec 2012 20:31 question, complete

Is there a special set up to allow for the "prev/next entry tag" to work. I have reviewed the documents and I believe I have my code correct but I am having issues with getting my next link to stay within its given category.

My Code:
{exp:low_reorder:next_entry set="2" url_title="{segment_2}" disable="member_data|pagination"}
View Next Room
{if no_results}All Rooms{/if}
{/exp:low_reorder:next_entry}

Categories Set Up:
7 entries in 2 categories (cat1=3, cat2=4).

Reorder Set Up:
Filter options are set to - "show entries per single category"

My Results with above code:
Starting with the 1st entry in the 1st category in the 1st position, if I click the next link it links to the 2nd category 1st entry in the 1 position...

Clicking next again stays within category 2 and links to the 2 entry in position 2.

When I click the next for a 3rd time, it links to the "All Rooms" page as if there are no other results. There lies my problem out of the 7 entries only 3 are linked through the "next entry tag" the other 4 are completely skipped.

If i were to go to any of the other entries I am given the same thing, link to the "All Rooms" page.

Any thoughts?

Replies

  1. Low 3 Dec 2012 22:37

    When using the "show entries per single category" option, you should enter the category ID in the parameters as well. What kind of URI's are you using, or can you enter the category="" param using, say, Low Seg2Cat?

  2. Lyles Armour 4 Dec 2012 18:25

    I have tried to enter the category="" but I can only get it to show one category at a time. Which would require me 2 separate loops for the 2 categories I have. It will not allow me to pass both categories through at once.

    I would like for it to know which entries are apart of which category and then display the appropriate "next" link.

  3. Low 4 Dec 2012 18:33

    Now, that is not possible. Since you're using the "show entries per single category" option, you're effectively creating a set per category (to be precise, a unique order of entries per set ID and cat ID). An entry can belong to more than one of these sets. So when you're displaying an entry, how do you know what is the next entry, if you don't define a set and category? The next entry can be different for set 1, category 1 and set 1 category 2...

    That's why both set="" and category="" are mandatory when using the "show entries per single category" option.

  4. Lyles Armour 4 Dec 2012 20:01

    I was drawing close to that conclusion. I changed my "Filter Options" to filter entries by category. This is working and will work for me moving forward. Thank you for the additional assistance.