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

Support archive

Are Low Reorder 2 sets "aware" of reverse related entries in Playa (parents)?

Greg Harmelink 17 May 2012 15:04 question, complete

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

  1. Low 17 May 2012 15:14

    It does require a workaround, yes. Can you give me a code example of this, perhaps?

  2. 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}

  3. 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:

    {exp:low_reorder:entries set="1"} 
    {title}
    {embed="tours/my_embed" entry_ids="{exp:playa:parent_ids}"}
    {/exp:low_reorder:entries}


    And the embed would look something like:

    {exp:low_reorder:entries set="2" entry_id="{embed:entry_ids}"} 
    {title}
    {/exp:low_reorder:entries}

  4. 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?

  5. 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.