How can add hep text in a component dialog on AEM 6.3?

Accepted Solutions (1)

Accepted Solutions (1)

Arun_Patidar
MVP
11-03-2020

Just before a tabs node in component dialog, create another node says heading with below resource type

https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/granite-ui...

 

Example of property dialog

/libs/wcm/foundation/components/basicpage/v1/basicpage/cq:design_dialog/content/items/tabs/items/properties

Answers (1)

Answers (1)

surenk 12-03-2020

With @Arun_Patidar 's input, was able to solve this.

 

Sample code (component/_cq_dialog/.content.xml):

 

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0"
          xmlns:cq="http://www.day.com/jcr/cq/1.0"
          xmlns:jcr="http://www.jcp.org/jcr/1.0"
          xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
          jcr:primaryType="nt:unstructured"
          jcr:title="Program Form"
          sling:resourceType="cq/gui/components/authoring/dialog">          
    <content
        jcr:primaryType="nt:unstructured"
        sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns">
      <items jcr:primaryType="nt:unstructured">
        <heading
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/coral/foundation/heading"
            level="{Long}2"
            text="Information heading above tabs"/>
        <tabs
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/coral/foundation/tabs"
            maximized="{Boolean}true">
            <items jcr:primaryType="nt:unstructured">
                 <tab1 jcr:primaryType="nt:unstructured"
                          jcr:title="Program Info"
                          sling:resourceType="granite/ui/components/foundation/section" />
                <tab2 jcr:primaryType="nt:unstructured"
                          jcr:title="Program Info"
                          sling:resourceType="granite/ui/components/foundation/section" />
            </items>
        </tabs>
      </items>
    </content>
</jcr:root>