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

Support archive

Searching a date range for parent entries

Nick Bedard 27 Feb 2014 21:59 question, complete

I'm able to search the date range for entries without a problem but can't seem to get the parent date range to search.

Gets me the date range for the entries however I want to search a parents date range. The scenario is this. I'm searching venues but I would like to find only venues that have entertainment for a certain date range (the parent).

I have tried the following with no luck:

Any help would be greatly appreciated.

Replies

  1. Low 28 Feb 2014 08:27

    I'm not sure what you're trying to accomplish. Did you try to post code? If so, try again. You can use http://pastie.org/ or http://pastebin.com/ for large chunks of code.

  2. Nick Bedard 28 Feb 2014 14:18

    Well sure enough, all the pasted stuff is missing. Sorry about that.

    Here's the code: http://pastie.org/8812249

    I have a a feeling I'm missing something in the larger scheme of things because last night I was messing around with a simpler relationship search, like find all entries that have a parent in a custom field, like city, and I couldn't get that to work either.

    Thanks for your prompt response as always.

    Nick

  3. Low 28 Feb 2014 15:10

    Yeah, the Relationships filter doesn't work like that. It should be formatted like parent:field_name or child:field_name, and takes entry IDs as value. Just like the category="" parameter takes category IDs. So what you're trying isn't possible out of the box.

    This thread is similar: https://getsatisfaction.com/low/topic...

    You'd probably need a custom filter for that.

  4. Nick Bedard 28 Feb 2014 15:53

    Sounds good, thank you for the input. I'll look into a custom filter to handle it.