Reference > Layout Parameters > assetsPath
assetsPath — Holds base URL for site content
This context variable holds root URL of the site, without tailing slash. It can be used to create absolute URLs and reference any file in the site file structure.
See also
- <% assetsPath %> layout tag
- <% assetsPath %> template tag
- $assetsPath template variable
- assetsPathMaster layout parameter
- <% imagePath %> layout tag
- $imagePath layout variable
- $thumbPath layout variable
Example
$fileURL = $params["assetsPath"] . "/files/file.zip";
This line used in a layout class method (with $params as a first argument) of CPDN site will put "http://cpdn.ccms.cz/files/file.zip" to the $fileURL variable.