Content Component

Class Name

The Content Component is implemented by the class

org.onehippo.cms7.essentials.components.EssentialsContentComponent

Purpose

This class is typically used to make the main content of a web page available as a Java bean to the rendering template (JSP or FTL). What content is made available depends on the requested URL and the site map. If no content can be found, the component sets the response status to 404 and redirects to the site's "not found" page.

This component class should not be referenced from an hst:catalog component, because such a component does not work (i.e. redirect to 404 page) if the component is dropped onto / rendered on a page with no content associated (through the matching sitemap item).

Component Parameters

Name Description
404page Repository path to the document (handle) representing the not-found page, relative to the site's content root. By default, the value "404page" is used.

Rendering Attributes

Name Type Description
document org.hippoecm.hst.content.beans.standard.HippoBean A HippoBean representing the document identied by the requested URL and the site map.
Did you find this page helpful?
How could this documentation serve you better?
On this page
    Did you find this page helpful?
    How could this documentation serve you better?