Load a Single Piece of Content from Identifier or Inode   [$dotcontent.find] - Documentation topics on: content map,dotcontent.find,dotcontent tool,find,getcontentdetail,getcontentmapdetail,load a piece of content,performance,.

Load a Single Piece of Content from Identifier or Inode   [$dotcontent.find]

$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.

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