Adding static content to a database-driven document
Because a database-driven document acts as a template for documents generated by a Web server, any static content—ordinary HTML content that exists in the document itself, rather than coming from a database—in it is reproduced by the server without alteration in the generated documents. For example, if a dynamic document contains a static heading at the top of the page, the same heading will appear in all the generated documents, in the same place.
You can add static content to a database-driven document both before and after creating a database-driven block in it.
You can insert static content both outside and inside a database-driven block. Inside a block—which is always contained in an HTML table—you can insert static content inside both empty cells and cells that contain block elementsThe functional units in a database-driven content block. Block elements include output elements, input boxes, input controls, and page link elements.. However, you cannot insert static content inside a block element itself.
The examples below two views of a database-driven document containing a list block, in Edit mode and in Preview mode. Static content has been added both outside and inside the block. Block elements have also been rearranged within the block and formatted. Database-driven content in the Preview example is shown with a gray background to distinguish it from static content.
Example list block with inner and outer static content (Edit mode)
Example list block with inner and outer static content (Preview)
Related topics
Formatting database-driven content