Skip to content

Latest commit

richardhand [Page] Confusing page titles should be clarified (#834)
- rewrites page property docs to include intention of title vs page title vs navigation title properties.
- general improvements to page property docs.
- adds note in the title component about automatic title generation.
Latest commit ae03da2 Nov 6, 2019

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
_cq_design_dialog Migrate unit test to aem mocks 2.7 (#708) Aug 30, 2019
_cq_dialog Add trackingFeature property to component dialog definitions (#482) Mar 1, 2019
clientlibs Migrate unit test to aem mocks 2.7 (#708) Aug 30, 2019
.content.xml Preparing changes for release 2.0.0 Jan 10, 2018
README.md [Page] Confusing page titles should be clarified (#834) Dec 2, 2019
_cq_editConfig.xml
title.html Migrate unit test to aem mocks 2.7 (#708) Aug 30, 2019

README.md

Title (v2)

Title component written in HTL, allowing to define a section heading.

Features

  • 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

Use Object

The Title component uses the com.adobe.cq.wcm.core.components.models.Title Sling model as its Use-object.

Component Policy Configuration Properties

The following configuration properties are used:

  1. ./type - defines the default HTML heading element type (h1 - h6) this component will use for its rendering
  2. ./linkDisabled - defines whether or not the title link is disabled

Edit Dialog Properties

The following properties are written to JCR for this Title component and are expected to be available as Resource properties:

  1. ./jcr:title - will store the text of the title to be rendered
  2. ./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
  3. ./linkURL - will allow definition of a content page path, external URL or page anchor for linking the title.

Client Libraries

The component provides a 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.

BEM Description

BLOCK cmp-title
    ELEMENT cmp-title__text
    ELEMENT cmp-title__link

Information

You can’t perform that action at this time.