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

NameDescription
documentRepository path to the document handle, relative to the site's content root. Identifies the document.

Rendering Attributes

NameTypeDescription
documentorg.hippoecm.hst.content.beans.standard.HippoBeanThe HippoBean representing the identified document. May be null if the document is not found.
Share Feedback
Page: /frontend/standard-components/document-component
Section: Frontend
Category *
Document Component | Bloomreach Content Documentation