Are Low Reorder 2 sets "aware" of reverse related entries in Playa (parents)?
Does Low Reorder 2 work with Playa when a Low Reorder set contains a exp:playa:parents call within it? This functionality worked previously but it doesn't appear to work after the upgrade and code change required for Low Reorder.
Replies
Low 17 May 2012 15:14
It does require a workaround, yes. Can you give me a code example of this, perhaps?
Greg Harmelink 17 May 2012 15:46
Here is a stripped down code example where tour_seasons_sort was the old low reorder field:
{exp:channel:entries channel="alumni_tours_season" orderby="tour_seasons_sort" sort="asc"}
{title}
{exp:playa:parents channel="alumni_tours" orderby="alumni_tours_sort" sort="asc" }
{embed="tours/inc_travel_partners_new" entry_id="{entry_id}"}
{/exp:playa:parents}
{/exp:channel:entries}
Low 18 May 2012 07:29
Hi Greg,
You can work around it by outputting the playa parent ids to the embed, like AJ did here.
So, basically, that means having a template like this:
And the embed would look something like:
Greg Harmelink 18 May 2012 15:58
Thanks. The workaround worked on a few pages. There were a couple of pages that include PHP that this workaround doesn't work for. I build a PHP array through the whole template and splitting it in embeds wouldn't work. I think most of these pages I will just handle using the fields the previously managed the sort for Low Reorder as their order does not change much.
If I run into more issues like the one I mention above, is there rollback path to a previous version of Low Reorder?
Low 18 May 2012 22:55
I'm afraid there isn't an easy rollback path, since the deprecated settings table has been removed. You can only rollback using a DB backup. However, if you do run into other issues, I'd be more than willing to help you find a different workaround. Just show me the template code for the previous version and I'll see what I can do to make sure it keeps working with LR2.