Creating the template.vtl - Documentation topics on: templates,themes,.

Creating the template.vtl

Objects
Property

$dotThemeLayout.sidebar

$dotThemeLayout.body

File Path

$dotTheme.path

Variables Values

$sidebar.location

Left
Right

$sidebar.widthPercent

20
30
40

$mainColumn.rows

100
75
66
50
33
25

Important Your template.vtl must start with #parse ("preprocess.vl") and end with #parse ("postprocess.vl"). Your template code must fall between these two lines of code.

Including Your VTLs your template

Your html_head.vtl, header.vtl, and footer.vtl are include with a #dotParse just like you would typically inlcude anyother vtl file in the dotCMS. The only differnce is you'll need to add the $dotTheme.path valuable in the file path. Here are some examples:

Including the HTML Head
#if($dotThemeLayout.htmlHead)
    #dotParse("${dotTheme.path}html_head.vtl")
#end
Including the Header
#if($dotThemeLayout.header)
    #dotParse("${dotTheme.path}header.vtl")
#end
Including the Footer
#if($dotThemeLayout.footer)
    #dotParse("${dotTheme.path}footer.vtl")
#end