contains (item)

This expression evaluates to true if an item is contained within a field. This works with fields that are lists in nature or strings. For instance a string can be contained in another string or a item can be contained within a list.

Template Example

<h3>Projects Tagged 'amazing'</h3>
<ul>
{% for item in this.children.filter(F.tags.contains('amazing')) %}
  <li>{{ item.name }}</li>
{% endfor %}
</ul>

Comments