Previous entry works but next entry doesn't
For some reason my previous entry link works correctly but my next entry does not.
I'm using the following code:
<ul>
<li id="prevProject">
{exp:low_reorder:prev_entry set="1" entry_id="{entry_id}" prefix="prev_" loop="yes"}
<a href="{path='our-work/{prev_url_title}'}" title="Previous Project"></a>
{/exp:low_reorder:prev_entry}
</li>
<li id="closeProject">
<a href="{site_url}" title="Back to Home"></a>
</li>
<li id="nextProject">
{exp:low_reorder:next_entry set="1" entry_id="{entry_id}" prefix="next_" loop="yes"}
<a href="{path='our-work/{next_url_title}'}" title="Next Project"></a>
{/exp:low_reorder:next_entry}
</li>
</ul>
The prev_entry link takes me through all of my entries in the correct order but the next_entry link alternates me between the 1st entry & the 7th.
Any help is appreciated.
Replies
Low 21 May 2013 06:52
What are your EE, LR and PHP versions?
Also, what are your Reorder Set's settings? A screenshot would help there.
thedesigncore 21 May 2013 12:40
EE 2.4, LR 2.1.1, PHP 5.3.5
Low 21 May 2013 13:05
I take it you're nesting the tags inside a channel:entries or low_reorder:entries loop? Also, can you enable the Template Debugger and copy/paste the output for a page with the wrong 'Next' link here?
thedesigncore 21 May 2013 13:31
I am nesting the tags inside a channel:entries loop.
I turned on template debugging but do not get any output. I tried creating a blank template with just a simple channel:entries tag but still got no debug info. No sure what's going on here.
Low 21 May 2013 13:33
Is your CP on another domain than the front-end of your site?
thedesigncore 21 May 2013 13:39
Yes.
Low 21 May 2013 13:41
Well, that explains why you're not recognised as logged in on the front end, as the cookie is set on the CP's domain.
Is the CP on a subdomain? If so, try to set the cookie domain to .yourdomain.com
thedesigncore 21 May 2013 13:45
It's not on a subdomain. The cookie setting did not work.
Low 21 May 2013 13:47
Well then. Copy an admin.php file from an EE install to the root of your front-end site, make sure the $system_path variable inside it points to your EE system folder, and use that to log in on the site. Then at least you should be able to log in under that domain and see the template debugger.
thedesigncore 21 May 2013 13:59
Ah! This is an MSM install and I was logged in on a different domain. I logged in using the domain in question & debugging works!
Here's the output for the reorder stuff:
Low 21 May 2013 14:11
Still can't seem to replicate.
Can you send SuperAdmin login credentials to hi at gotolow dot com so I can take a look myself?
thedesigncore 21 May 2013 14:22
Sent. Thanks for looking into this!
Low 21 May 2013 14:44
Saving the Set's order and clearing the cache solved the issue.