hello, i would like to constrain my repeating group with my url. But i’m having trouble finding the right solution.
This is the constraint:
This the evaluator:

The problem is that is is still constraining when there is no input from the url… Ignore empty constraints is on.
context: I want to filter the repeating group by publication date. For instance i only want to show products that are published 1 day old.
What is the right constraint for this?
To address the first part of your question (how to deal with the empty constraint issue)…
Add a Group somewhere to use as a variable, with a content type of Date, but leave the data source blank.
Put a condition on that group, to set the datasource to the current date/time + days: Get datum from page URL, when Get datum from page URL is not empty.
Then use that Group’s Date as the constraint in your search… (keep the Ignore Empty Constraints box checked)…
context: I want to filter the repeating group by publication date. For instance i only want to show products that are published 1 day old.
What is the right constraint for this?
That’s a different question…
What exactly do you mean by “products that are published 1 day old”?
1 Like
That’s clever, thanks! It works.
1 Like