Generating filters
Instead of writing a predefined filter in your Page Template or Component Template, you can also create a Placeholder (a combination of a Component Schema, a Component and a Component Template) to generate filter code dynamically.
Procedure
- Create a Component Schema that specifies metadata fields to query on.
- Create a Component that supplies the values for these metadata fields.
- Create a Component Template that combines the information from the Schema and the Component to produce a Component Presentation consisting of filter script code.
- Place the resulting Component Presentation on a Page and publish the Schema, Component, Component Template and Page.