Website Viewtool

Last Updated: Mar 28, 2024
documentation for the dotCMS Content Management System

The Website viewtool is a helper tool that helps to retrieve path elements — hosts, folders, or subfolders — for a site.

The following example shows how the WebsiteWebAPI is mapped in the toolbox.xml file:

    <tool>
        <key>website</key>
        <scope>request</scope>
        <class>com.dotcms.rendering.velocity.viewtools.WebsiteWebAPI</class>
    </tool>

On this page

×

We Dig Feedback

Selected excerpt:

×