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

Support archive

Low events and relationships

KeithMancuso 10 Oct 2013 15:40 problem, rejected

We have a series of events in a channel with low events and we want to filter that list by ones with a specific relationship (using new native relationships)

My attempt to solve this is using stash to do this.. simplified for this example

{exp:channel:entries entry_id="12" channel="fairs"}
{stash:embed:upcoming_events stash:entry_ids="{parents field="event_related_fair" backspace="1"}{parents:entry_id}|{/parents}"}
{/exp:channel:entries}

with the stash file having just

{exp:low_events:entries channel="events" entry_id="{stash:entry_ids}"}
{title}
{/exp:low_events:entries}

but not really working as expected?

Replies

  1. Low 10 Oct 2013 15:46

    Can you enable the Template Debugger and copy/paste its contents here?

  2. KeithMancuso 10 Oct 2013 15:55

    so playing around with it some more i realized the problem was that it does work as long as their is at least one event listed in the relationships...

    My problem was that the stash:entry_ids was blank so low events was just showing all events (as it should).. but as soon as i added one with that relationship it correctly filtered to just show upcoming events with that relationship!

    Sorry bout that... I think im good now

    Thanks for responding so quickly!