Content Application Developer Manual / Version 2207
Table Of ContentsWhen 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
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".