Document Component
Class Name
The Document Component is implemented by the following class:
org.onehippo.cms7.essentials.components.EssentialsDocumentComponent
Overview
The Document Component exposes a document's content as a Java bean to the rendering template (JSP or Freemarker). Use this component to make specific document content available for display in templates.
This component does not redirect if it cannot provide a document. Instead, it makes the document bean available if found, or sets it to null if not.
Use the Document Component to present additional content on a page, such as in a side column or footer. For main page content, use the Content Component.
Component Parameters
| Name | Description |
|---|---|
| document | Repository path to the document handle, relative to the site's content root. Identifies the document. |
Rendering Attributes
| Name | Type | Description |
|---|---|---|
| document | org.hippoecm.hst.content.beans.standard.HippoBean | The HippoBean representing the identified document. May be null if the document is not found. |