include_hidden
(value
)This controls how the query should behave with regards to hidden records. A query created from the children attribute of a record will not include hidden records (or undiscoverable) by default. The opposite is true for queries created from the query method of the pad.
The parameter can be set to True
to include hidden or False
to exclude
hidden records.
Here a basic example of how to filter something in a template:
<ul> {% for item in this.children.include_hidden(true) %} <li>{{ item.title }}{% if item.is_hidden %} (hidden){% endif %}</li> {% endfor %} </ul>
Comments