The <cm:getNode> tag retrieves a content node (item) or a hierarchy node (directory) based on an explicit path and stores the node in a variable. Use this tag to retrieve content if you know the exact path of the content node.
<tagName attribute="value" />
path
Required (String) - The repository path of the node to
retrieve. The path must start with /<REPOSITORY_NAME>/.
For example:
/BEA Repository/graphics/hr/open_enrollment retrieves a content item
called "open_enrollment."
id
Required (String) - The variable in which the content node is placed.
failOnError
Optional (boolean) - This attribute can have one of two values:
useCache
Optional (boolean) - Set to true to cache the results. (The default is "false.") A different cache is used than what is set in the Administration Portal. If you are already using application cache, as determined in the Administration Portal's Server Administration page, do not set this cache attribute. Using more than one cache can result in unreliable data retrieval.
cacheScope
Optional (String) - The scope in which the cache is used: "application," "page," "request," or "session." The default is "session." See the description of the useCache attribute for guidance.
cacheId
Optional (String) - The variable in which the cached items are stored. See the description of the useCache attribute for guidance.
cacheTimeout
Optional (long) - The number of milliseconds to store the items in cache. See the description of the useCache attribute for guidance.
<cm:getNode path="/BEA Repository/graphics/hr/open_enrollment" id="node" />
<div>
<%= node %>
</div>