Custom related items via CMS

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.

Am I missing something? I’ll be grateful for any help.

Hi there!

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:

  1. Select your Collection list on the canvas
  2. Navigate to Element settings panel > Collection list settings > Filter
  3. Click the “plus” icon to add a filter
  4. In the Field dropdown, select your Collection name (e.g., “Stays”)
  5. Choose “is not” from the When dropdown
  6. 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.