7-32 Administrators Guide for Dynamic Converter
7.6 Sample Script Templates
Dynamic Converter
comes with a number of sample script templates that you can check into Content Server and begin using right away. The sample script templates are
available in the ucmDistributionDynamicConverterSamples directory. The following sample layout templates are available:
■
Basic
■
Elements
■
Plain
■
SimpleToc
■
Slideshow, Slideshowb, and Slideshowc
■
Textout These sample script templates are provided as Hypertext Content Server Template
HCST files.
7.6.1 Basic
Figure 7–2 shows an example of the Basic script template.
Figure 7–2 Example of the Basic Script Template
The Basic sample script template contains the following code: html
head { if element=property.title}
title{ insert element=property.title suppress=tags}title { else}
titleConverted { insert element=pragma.sourcefilename}title { if}
{ if element=pragma.cssfile} link rel=stylesheet href={ insert element=pragma.cssfile}link
Script Templates 7-33
{ if} defaultPageTitle=Converted Content
include std_html_head_declarations head
include body_def include std_page_begin
include std_header
table border=0 cellpadding=0 cellspacing=0 width=550 trtd
{ repeat element=sections} p align=center{ insert element=sections.current.bodyorimage
width=500}p hr size=3hr
{ repeat}
tdtr table
include std_page_end body
html
7.6.2 Elements
Figure 7–3 shows an example of the Elements script template.
Figure 7–3 Example of the Elements Script Template
See Appendix E, Elements Script Template
for a more elaborate explanation of the Elements template.
7-34 Administrators Guide for Dynamic Converter
7.6.3 Plain
The Plain sample script template contains the following code: html
head { if element=property.title}
title{ insert element=property.title suppress=tags}title { else}
titleConverted { insert element=pragma.sourcefilename}title { if}
{ if element=pragma.cssfile} link rel=stylesheet href={ insert element=pragma.cssfile}link
{ if}
defaultPageTitle=Converted Content include std_html_head_declarations
head
include body_def include std_page_begin
include std_header
table border=0 cellpadding=0 cellspacing=0 width=550 trtd
{ repeat element=sections} { if element=sections.current.type value=wp}
{ insert element=sections.current.bodyorimage width=500}
{ if element=sections.current.footnotes.1.body} brbr
{ repeat element=sections.current.footnotes} { insert element=sections.current.footnotes.current.body}
brbr { repeat}
{ if}
{ if element=sections.current.endnotes.1.body} brbr
{ repeat element=sections.current.endnotes} { insert element=sections.current.endnotes.current.body}
brbr { repeat}
{ if} { else}
h1{ insert element=sections.current.body.title suppress=tags}h1 { insert element=sections.current.bodyorimage width=500}
brbrhrhrbrbr { if}
{ repeat}
tdtr table
include std_page_end body
html
Script Templates 7-35
7.6.4 SimpleToc