wcmInit

On the author instance, this component initalizes the edit mode and loads all required client libs. Supports both Touch UI and Classic UI.

Usage in your page component Sightly template:

<head>
  <meta data-sly-resource="${'.' @ resourceType='adaptto/components/global/wcmInit' }"
      data-sly-unwrap></meta>
</head>

ClassicUI custom widget clientlibs

If you want have specifying a set of custom client library categories (only useful for Classic UI) you can create a subcomponent and specifiy additonal property.

Component definition for subcomponent:

{
  "jcr:primaryType": "cq:Component",
  "sling:resourceSuperType": "wcm-io/wcm/commons/components/global/wcmInit"
}

Markup for subcomponent:

<head
    data-sly-use.render="render.html"
    data-sly-call="${render.head
        @ clientLibCategoriesClassicUI='cq.wcm.edit,myapp.widgets1,myapp.widgets2'}"
    data-sly-unwrap>
</head>

page

Base page component which defines a simplified page properties dialog with only basic features.

You can inherit from this in you page components:

{
  "jcr:primaryType": "cq:Component",
  "sling:resourceSuperType": "wcm-io/wcm/commons/components/global/page"
}

Back to top

Version: 1.6.1-SNAPSHOT. Last Published: 2020-03-31.