Content Blocks
Content Blocks contain the creative content of each document page. They are HTML files, but they do not include page level layout, or any of the document's structural elements like the title, menu, header, footer or search form. These elements are supplied by the template or DynaDoc. DynaDoc was designed so that the effort of creating documents is focused primarily on the creation of these content blocks, and the order in which they will be displayed. There are two content blocks that can be used on each page. One is used for the primary content of the page, and the second is used for a sidebar.
The primary content block for this page up to this point is shown below.
<h1>Content Blocks</h1>
<p>Content Blocks contain the creative content of each document page. They are HTML files, but they do not include page level layout, or any of the document structural elements like the menu, header or footer. These elements are supplied by the template or DynaDoc. DynaDoc was designed so that the effort of creating documents is focused primarily on the creation of these content blocks, and the order in which they will be displayed. There are two content blocks. One is used for the primary content of the page, and the second is used for a sidebar.<p>
<p>The content block for this page up to this point is shown below.<p>
|
Notice that the contents of the content block are quite simple, yet the page you see displayed has many more elements and features. That is the beauty and power of DynaDoc - to create this entire page, only the above block of HTML had to be written.
Other key points:
- The layout and style of this page can be easily changed by applying a different template.
- The document can be easily restructured and the menu would be regenerated by DynaDoc, so menu and link management is not required.
- Conditional pages and text can be used to create unique versions of this document from the same source.
Content Block Tags
The primary and secondary content blocks allow tags for conditional text and to include other files. The following tag sets are allowed:
Content Block Tag Set |
Description |
<!--v--> <!--/v--> |
Enclosed text will only be included in view version. |
<!--p--> <!--/p--> |
Enclosed text will only be included in print version. |
<!--#--> <!--/#--> |
Enclosed text will only be included if the VALID_TEXT command includes #, where # is 1 - 9. |
<!--i--> <!--/i--> |
Include another content file in place of this tag set. The file name should be included between the tags, and may include a path. Multiple include tags may be used in one file, and include tags can be used recursively - any include tags in the included file will be processed. |
|