
122
Serena® Collage® 5.1.3
Chapter 4 Layout Contribution Component Reference
About Layout Contribution Components
Layout contribution components work together with the content contribution feature in
Serena Collage. They enable you to set up layout files for contribution documents, or to
define alternate layouts for other HTML assets.
Layout files are any HTML file or server page that defines look and feel for contribution
document in Collage, or that defines alternate formatting for other HTML assets. This can
include:
Where on a page contribution fields are placed
How text or other properties in the contribution field are formatted
Template elements, such as navigation bars or banners
Whether any metadata field or property values should be added to the deployed
version of contribution documents
For detailed information on setting up content contribution, see the Serena Collage
Project Manager's Guide.
How Collage Uses Layout Files
Collage uses layout files in the following ways:
To lay out the page in the contribution document editing view, so that contributors see
the page as it will actually appear when it is deployed.
To format and generate the final HTML page, which merges the content from the
contribution document with the layout file. You can use different layout files for the
editing view, and for the deployed versions of contribution documents.
Use Standard HTML Files
Layout pages can be any standard HTML or server page, such as a JSP, ASP, or PHP. To use
a page as a layout file, all you need to do is add special tags that tell Collage where to
insert the contribution fields for the asset type. To format those fields, simply wrap
standard HTML formatting tags around the special contribution field tags.
Using Layout Pages with Master Pages
To manage the reuse of formatting and Components on more than one layout page, you
can apply master pages to layout pages. In this way, you can continue to use the powerful
templating and navigation management features that master pages provide, and take
advantage of the structured content management and creation that the content
contribution feature provides.
If you choose to use master pages to manage template elements on your layout pages,
any HTML on the master pages is combined with the HTML on the layout pages.
In the example below, the master page contains all navigation and banner elements,
including a navigation bar in the top frame. The layout file then determines the look and
Kommentare zu diesen Handbüchern