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

Support archive

Reordering with Playa / Reverse Related Entries

mheavers 7 Jun 2010 03:10 question, complete

Hey Low - this code is breaking my page layout:

[code]
{exp:channel:entries channel="portfolio_categories" orderby="cat_reorder" sort="asc"}

{title}


{reverse_related_entries weblog="portfolio" orderby="portfolio_order"}

{portfolio_item limit="1"}

{/portfolio_item}

{/reverse_related_entries}




{/exp:channel:entries}
[/code]

The orderby="portfolio_order" is what breaks it. Am I doing something wrong?

Replies

  1. Low 7 Jun 2010 16:15

    I'm currently on vacation, so my support is limited until the 21st of June.

    I think it might have to do with the reverse related entries combined with Playa not being able to sort by custom field, but I'm not sure. I should do some tests myself in order to check, but I can do that only when I get back.

  2. mheavers 7 Jun 2010 22:17

    Cool. Enjoy your vacation!

  3. Low 14 Jul 2010 19:35

    Hi!

    What's the status of this issue at the moment? I've been trying to reproduce it (without Playa, but with reverse related entries) and everything seemed okay.

    If you're still having trouble, please let me know.

  4. mheavers 15 Jul 2010 12:24

    It's not breaking the page anymore - but it's also having no effect when I reorder the entries. I can create a login if you'd like so you can look at it. I'm fairly certain all my code is in order.

  5. Low 15 Jul 2010 12:30

    The no effect bit might be a caching issue. Try reordering the entries, then clear all caches (under Tools > Data > Clear Caching), and reload the page.

    If it still has no effect then, I'll take a look at your code.

  6. mheavers 15 Jul 2010 14:35

    Still no luck. Cleared the caches and viewed from multiple computers on separate networks.

  7. Low 15 Jul 2010 14:38

    If you send me some login data for your installation, I'll take a look when I can. low at loweblog dot com.

  8. mheavers 15 Jul 2010 23:08

    Thanks! I sent it your way

  9. Low 16 Jul 2010 17:38

    For the record, the problem was that there were 2 {reverse_related_entries} tags, one of which did not have the orderby parameter. Adding it solved the issue.