Title component written in HTL, allowing to define a section heading.
- In-place editing
- Automatic reading of the page title from the current page, if no title text is defined
- HTML element configuration (
h1
-h6
) - Linkable to content pages, external URLs or page anchors
- Styles
The Title component uses the com.adobe.cq.wcm.core.components.models.Title
Sling model as its Use-object.
The following configuration properties are used:
./type
- defines the default HTML heading element type (h1
-h6
) this component will use for its rendering./linkDisabled
- defines whether or not the title link is disabled
The following properties are written to JCR for this Title component and are expected to be available as Resource
properties:
./jcr:title
- will store the text of the title to be rendered./type
- will store the HTML heading element type which will be used for rendering; if no value is defined, the component will fallback to the value defined by the component's policy./linkURL
- will allow definition of a content page path, external URL or page anchor for linking the title../id
- defines the component HTML ID attribute../linkAccessibilityLabel
- defines an accessibility label for the the title's link../linkTitleAttribute
- defines a title attribute for the the title's link.
The component leverages core.wcm.components.title.v2.editor
editor client library category that includes JavaScript
handling for dialog interaction. It is already included by its edit and design dialogs.
BLOCK cmp-title
ELEMENT cmp-title__text
ELEMENT cmp-title__link
- Vendor: Adobe
- Version: v3
- Compatibility: AEM 6.3
- Status: production-ready
- Documentation: https://www.adobe.com/go/aem_cmp_title_v3
- Component Library: https://www.adobe.com/go/aem_cmp_library_title
- Authors: Stefan Seifert, Vlad Bailescu, Jean-Christophe Kautzmann