File includes

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.

This reference can either be used directly in a velocity page or for creating simple widgets in dotCMS.

By reference

  1. #dotParse('/application/velocity/fields/region.vtl')  

By host

You can also use dotParse across hosts:

  1. #dotParse("//myhost.com/velocity/mycode.vtl")  

By identifier

or by Identifier:

  1. #dotParse("/dotAsset/$identifier.vtl")  
comments powered by Disqus