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

Support archive

Using Playa parent_ids tag with Low Events

Daniel Howells 18 Apr 2013 11:58 question, complete

I need to get all the parents of an entry, but order them by the end date/time. I hoped this would work:

 
{exp:low_events:entries dynamic="off" channel="events" orderby="low_events:end" sort="asc" entry_id="{exp:playa:parent_ids channel='events'}"}
{if count == 1}
<!-- events -->
<li><a href="{path='events'}" class="header">Events</a>
<ul>{/if}
<li><a href="{path='events/show/{entry_id}/{url_title}'}">{exp:low_widont}{title}{/exp:low_widont}</a></li>
{if count == total_results}</ul>
</li>
<!-- .events -->{/if}
{/exp:low_events:entries}


But it doesn't (nothing is returned). Hopefully you can see what I'm trying to achieve here, can you think of a way to do it?

Thanks!

Replies

  1. Low 18 Apr 2013 12:03

    Using a tag as another tag's parameter value is tricky. You could try to add parse="inward" to the low_events:entries tag, or use an embed:

    {embed="group/tmpl" entry_ids="{exp:playa:parent_ids channel='events'}"}


    ...and then use {embed:entry_ids} inside the group/tmpl template where you keep the low_events:entries tag.

  2. Daniel Howells 21 Apr 2013 16:10

    Okay great I think that did the trick - thanks.