Component Tag Parameter: Ignore Inactive/Disabled items
- Liquid
Right, so you want to output items that are inactive (due to release/expiry dates):
So the parameter could look like:
{% component source: "My Module", ignoreInactive: "true", type: "module" %}
-
false
being the default (current behaviour - doesn’t output inactive items) -
true
outputs inactive items with active items
ignoreInactive: "true|false"
From there you can use liquid to determine if an item is pre-release date or post-expiry date.
But I guess the parameter could be pushed further to include additional values like:
-
pending
outputs pre-release date items with active items -
expired
outputs post-expiry date items with active items
ignoreInactive: "true|false|pending|expired"
The true|false
option is probably sufficient, but just putting the idea out there
Similarly, a parameter to ignore ‘disabled’ items:
ignoreDisabled: "true|false"