Documentation for the worlds leading Java Based Open Source Web Content Management System

dotCMS

Dynamic Include of a .vtl or .html file

 

The dotParse macro must be passed a path to an HTML or VTL file that lives in the website browser. The dotParse macro will read (parse), the file passed to the macro and execute the code the moment the macro statement is reached.

*The dotParse macro accepts a path to a file on the dotCMS website browser. Velocity"s standard #parse command must be passed a server file path to an HTML or VTL file.

 

Macro Overview:

Syntax:

#dotParse("/myFile.vtl")
dotParse also works across hosts
#dotParse("//myhost.com/velocity/mycode.vtl") 
or by Identifier
#dotParse("/dotAsset/$identifier.vtl") 

2

Subscribe to dotcms

Visit this group