close

Filter

loading table of contents...

Content Application Developer Manual / Version 2207

Table Of Contents

4.3.3.5 Loading Templates from an Arbitrary Directory

When working on a new version of templates that have not yet been uploaded to the content repository, the templates location for this view repository can be overwritten in a local CAE configuration using a customizer:

<customize:replace id="overrideTemplateLocation"
                   bean="templateLocations">
  <map>
    <!-- the key is the logical name of the view repository -->
    <entry key="customViewRepository"
           value="file:///C:/path/to/template-module/src/main/webapp/WEB-INF/templates"/>
  </map>
</customize:replace>
Caution

Caution

This feature only works with FreeMarker templates and for templates which are not available in the site's theme. The site must be configured to use the view repository (e.g. customViewRepository in the example above). In addition, the property delivery.local-resources must be set to "true".

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.