When a user selects a “List Component,” the component queries for content. The list then pulls in the formatting stored in the List Presentation component – the header, result design, and footer – from the List configuration item that triggered it. This separation of the query from the presentation allows the same list component to be used many times and formatted differently in each case. This design also allows you to build in your own custom list querying component (for example, menus, personalization rules, searches, or navigator components) and your own header, footer, and result design components. You can use your custom queries and formatting with the ones included with Content Template Catalog in the same List configuration items.
For lists that require parameterization, the following fields are set up in the contextual rendering code:
- Context Override overrides the current page context and sets a selected context for rendering, which can be accessed in the list components. For use in personalization rules, this context is set to a request attribute.
- List Templates – a list of template names that can be used in menus.
- List Categories – a list of categories that can be used in menus.
The following example shows a landing page with a short list of upcoming items.
This second example shows an index page with an index list.
Parent topic: Presentation templates and components