CMSUser Viewtooldocumentation for the dotCMS Content Management System

The CMSUser Velocity Viewtool allows velocity access to the logged in user object and user properties.

The following example shows how the CMSUsersWebAPI Viewtool is mapped in the toolbox-xml file:

    <tool>
        <key>cmsuser</key>
        <scope>request</scope>
        <class>com.dotcms.rendering.velocity.viewtools.CMSUsersWebAPI</class>
    </tool>

Example

Returns the ….

code example

Javadoc link: CMSUsersWebAPI