Dotcontent Viewtool documentation for the dotCMS Content Management System

The $dotcontent Velocity Viewtool is used to pull individual content items or lists of content from the content repository via Velocity, using Lucene queries.


There are many different methods to pull content using the $dotcontent tool. For more information, on each method, please click the links below:

MethodReturn TypeContent Returned
$dotcontent.pull()List of content objectsAll content which matches the specified Lucene query
$dotcontent.pullPerPage()List of content objectsAll content matching the specified query, paginated
$dotcontent.pullRelated()List of content objectsRelated content matching the specified parameters
$dotcontent.pullPersonalized()List of content objectsContent matching the specified parameters, personalized for individual users
$dotcontent.find()Single content objectAn individual content item specified by identifier

Toolbox.xml Configuration

The following example shows how the dotcontent Viewtool is mapped in the Toolbox.xml file: