Hey, I am building a page for a type of stay (related to short-term rentals) using a template page. I have a section called “related stays” at the bottom of the template page and I want to be able to showcase the other items besides the current stay itself.
I have tried filtering the collection items to exclude the current stay from the list, however I can’t find the settings that would enable me to do that with a collection. The only available inputs I can filter by are the Stay collection fields, and not the collection itself too.
You can exclude the current Collection item from your “related stays” list by setting up a simple filter in your Collection list settings. Here’s how to do it:
Select your Collection list on the canvas
Navigate to Element settings panel > Collection list settings > Filter
Click the “plus” icon to add a filter
In the Field dropdown, select your Collection name (e.g., “Stays”)
Choose “is not” from the When dropdown
The third field should automatically show “Current Collection item”
This will ensure that the current stay doesn’t appear in your related stays section.
Hopefully this helps! If you still need assistance, please reply here so somebody from the community can help.
In a specific collection template page, if you place a collection list that this template is associated with, you will have the filter option to exclude the current collection item and show the rest of them. Like the following example of a filter in a Product Model template page where I have placed the Product model collection accordingly.
But in case, I place any other collection inside this collection template page, I won’t have such dynamic option by default. In such cases, I can opt for having a reference / multi-reference field connecting the template’s CMS collection to another CMS collection that I am placing inside this template in order for it to filter it via that reference field.
If that’s not the case, you should be able to see the filter as shown above.
Can you please double check that you are placing the relevant collection list in the template page that it is associated with?