Creating a new document template

Please be sure to understand how smarty works first (What is Smarty and how does it work?) and check the general recommendations for templates in AWF (Changing the design).

It depends on your actual document type, what variables are available for your new document template. Document templates are stored in templates/doctypes/[doctype name]/. The template name is supposed to end with ".html.tpl" (in case, html is your output format). The output will be displayed at the position defined by the {$content} variable in your main design template (e.g. templates/designs/default.html.tpl).

If you just want to display the body-field of your document, this line is all you need (see templates/doctypes/default.html.tpl):


{$document.transformed.body}

PDF version

Created: 08.01.2006 23:13 CET, Last Change: 20.01.2006 15:37 CET by admin

Login

or create a new account

Username


Password