Load Individual Content from Identifier or Inode   [$dotcontent.find]

Last Updated: Jul 9, 2020
documentation for the dotCMS Content Management System

$dotcontent.find Tool Overview:

The $dotcontent.find tool will take an identifier or inode of a piece of content and return just the ContentMap object. This method is preferred over querying for the content because the the correct content is retrieved directly from cache, rather than hitting the index.




Optional Parameters:N/A

Usage: (See example below)


Example 1: A simple example using the required fields

#set($id = $request.getParameter("id"))  
  #set($content = $dotcontent.find($id))  
My title is $content.title  

On this page


We Dig Feedback

Selected excerpt: