Load a Single Piece of Content from Identifier or Inode   [$dotcontent.find] 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 /docs/{latestJavadocVersion}/javadocs/com/dotmarketing/viewtools/content/ContentMap.html 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.

Syntax:

$dotcontent.find(contentIdentifier)

Arguments:N/A

Optional Parameters:N/A

Usage: (See example below)

Examples:

Example 1: A simple example using the required fields

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