Web Developer Course

Managing VTL's Across Hosts

This video explores three ways to parse VTL files in dotCMS: local parsing, global parsing, and .asset parsing. Local parsing involves pulling VTL files from the site's file system, suitable for single-site use. Global parsing allows referencing shared code across sites using a host-qualified path, beneficial for multi-tenant environments. Lastly, .asset parsing is the most stable method, exclusively for files uploaded as .assets. Each method has its pros and cons in terms of scalability and maintainability. By demonstrating parsing on demo.cms.com, newtravel.com, and the global site, the video showcases how to effectively reuse dynamic code across different sites in dotCMS.

Next up

Chapter 12: Custom Code Fields

Continue →