Setting Template Root

Templates Tutorial : Setting Template Root

Overview

The Template Root parameter controls the location of the templates in the filesystem. The directory specified by the Template Root corresponds to the root of the Templates tree in the CMS UI. Templates are published to and parsed from this location.

Setting Template Root in standalone CMS

In the standalone CMS, the TemplateRoot is controlled by the TemplateRoot parameter under the cms section of the server's INI file. For Example:
[ns/server/cms-simple/cms]
TemplateRoot=/web/cms-simple/templates
The syntax is similar if your server uses a TCL file for initialization:
ns_section "ns/server/${servername}/cms"
ns_param TemplateRoot $rundir/templates
The TemplateRoot parameter, if absent, defaults to the templates directory under the run directory of your server. For example, if the pageroot for your server is /web/fooserver/www, the TemplateRoot parameter will default to /web/fooserver/templates.

Setting Template Root in CMS-package

The Template Root is controlled by the TemplateRoot parameter of the package.