Component Presentations
A Component Presentation is a publishable piece of content that appears on a webpage. Components are combined with Component Templates during publishing to produce Component Presentations.
Components contain content without formatting or visual information. Component Templates contain code that specifies how the Component should be visualized, and may contain code to be executed (that is, Component Template code can also contain web application code).
When a user publishes a Component or Component Template, the Content Manager combines the two to produce a Component Presentation. Component Presentations therefore do not exist in the Content Manager except when a user previews content. Component Presentations have system metadata but they cannot have custom metadata.
- Static Component Presentations
-
When you add a Component and a non-dynamic Component Template to a Page, the two are combined into a Component Presentation and added to the webpage before publishing takes place. The advantage of Static Component Presentations is that they speed up your website because a file is retrieved at request time. The disadvantage is that it slows down publishing, duplicates content, makes dynamic assembly of the webpage impossible, creates the risk of stale content and an inconsistent website, makes dynamic link resolving impossible, and takes up disk space.
- Dynamic Component Presentations
-
When you add a Component and dynamic Component Template to a Page, the two are combined into a Component Presentation and published and stored separately from the webpage. The published webpage contains code to retrieve the Component Presentation at request time.
The advantage of dynamic Component Presentations is that they speed up publishing, makes dynamic link resolving possible, eliminates the risk of stale content or an inconsistent website, and use less disk space. However, using Dynamic Component Presentations require a faster Web server and/or faster access to the published Component Presentations.