Using filters to assemble content dynamically
About this task
One way to put filtering to use is through the dynamic assembling of content. By default, you add specific Component Presentations to a Page before publishing occurs. The resulting Web page always shows the same Component Presentations.
In some cases, however, you may want to determine which Component Presentations to pick based on dynamic criteria. For example, you may want to display the five most recently published Component Presentations, or all Component Presentations that have been marked 'sports'. To do this, you use a filter to assemble content dynamically.
In this scenario, you do not specify a fixed set of Component Presentations to add to a Page. Rather, you specify a query consisting of content criteria and then include (some or all) Components that meet those criteria. Using queries to select a number of Dynamic Component Presentations is known as filtering.