Integrating Page design and Component design
You may want Components to be displayed differently depending on the specific Page on which they are displayed. As the design of the Component is integral to the page it makes no sense to separate one from the other.
For example, if your various types of Pages use different color schemes, such as a blue page and green page, you may want your Component to appear blue on a blue page and green on a green page).
The Component Template for this type of Component should produce an unvisualized Component and the Adobe Dreamweaver Template for the Page should only contain the Component design: it should contain no optional regions and no call to RenderComponentPresentation().
Designing Component visualization as part of the page visualization has the following drawbacks:
- Page authors can no longer specify how a Component is visualized: you ignore the Component Template they select when they add a Component Presentation to a Page. (Because of this, consider instructing them to select a dummy Component Template, such as the Default Component Template.)
- The rendered Component is no longer identifiable as a separate entity, which means that a Component link in Content Manager cannot result in a hyperlink to this rendered Component.
- The rendered Component can no longer be stored separately on the Content Delivery server. If the Component occurs on many different Pages, this means that a change in the Component results in the republishing of those Pages, which may slow down publishing.