Core Components [Teaser] - Proxy Dialog features do not work

Avatar

Avatar

robinsonm

Avatar

robinsonm

robinsonm

01-11-2019

I am trying to proxy/implement the Teaser component into a new component which adds an additional dialog field. The RTE in the Text section of the dialog is not reflecting any changes made to the <paraformat> node. Below is the entire descriptionGroup node. I only have 2 paragraph formats, but it is always showing the h1-h6 titles, and it also does not show the special characters option within the RTE in the dialog.

<descriptionGroup

    granite:hide="${cqDesign.descriptionHidden}"

    jcr:primaryType="nt:unstructured"

    sling:resourceType="granite/ui/components/coral/foundation/well">

    <items jcr:primaryType="nt:unstructured">

        <description

            jcr:primaryType="nt:unstructured"

            sling:resourceType="cq/gui/components/authoring/dialog/richtext"

            fieldDescription="A description to display as the subheadline for the teaser."

            fieldLabel="Description"

            name="./jcr:description"

            useFixedInlineToolbar="{Boolean}true">

            <rtePlugins jcr:primaryType="nt:unstructured">

                <format

                    jcr:primaryType="nt:unstructured"

                    features="bold,italic"/>

                <justify

                    jcr:primaryType="nt:unstructured"

                    features="-"/>

                <links

                    jcr:primaryType="nt:unstructured"

                    features="modifylink,unlink"/>

                <lists

                    jcr:primaryType="nt:unstructured"

                    features="*"/>

                <misctools jcr:primaryType="nt:unstructured">

                    <specialCharsConfig jcr:primaryType="nt:unstructured">

                        <chars jcr:primaryType="nt:unstructured">

                            <default_copyright

                                jcr:primaryType="nt:unstructured"

                                entity="&amp;copy;"

                                name="copyright"/>

                            <default_euro

                                jcr:primaryType="nt:unstructured"

                                entity="&amp;euro;"

                                name="euro"/>

                            <default_registered

                                jcr:primaryType="nt:unstructured"

                                entity="&amp;reg;"

                                name="registered"/>

                            <default_trademark

                                jcr:primaryType="nt:unstructured"

                                entity="&amp;trade;"

                                name="trademark"/>

                        </chars>

                    </specialCharsConfig>

                </misctools>

                <paraformat

                    jcr:primaryType="nt:unstructured">

                    <formats jcr:primaryType="nt:unstructured">

                        <default_p

                            jcr:primaryType="nt:unstructured"

                            description="Paragraph"

                            tag="p"/>                                                                                                                        

                        <default_blockquote

                            jcr:primaryType="nt:unstructured"

                            description="Quote"

                            tag="blockquote"/>

                    </formats>

                </paraformat>

                <table

                    jcr:primaryType="nt:unstructured"

                    features="-">

                    <hiddenHeaderConfig

                        jcr:primaryType="nt:unstructured"

                        hiddenHeaderClassName="cq-wcm-foundation-aria-visuallyhidden"

                        hiddenHeaderEditingCSS="cq-RichText-hiddenHeader--editing"/>

                </table>

                <tracklinks

                    jcr:primaryType="nt:unstructured"

                    features="*"/>

            </rtePlugins>

            <uiSettings jcr:primaryType="nt:unstructured">

                <cui jcr:primaryType="nt:unstructured">

                    <inline

                        jcr:primaryType="nt:unstructured"

                        toolbar="[format#bold,format#italic,format#underline,#justify,#lists,links#modifylink,links#unlink,#paraformat]">

                        <popovers jcr:primaryType="nt:unstructured">

                            <justify

                                jcr:primaryType="nt:unstructured"

                                items="[justify#justifyleft,justify#justifycenter,justify#justifyright]"

                                ref="justify"/>

                            <lists

                                jcr:primaryType="nt:unstructured"

                                items="[lists#unordered,lists#ordered,lists#outdent,lists#indent]"

                                ref="lists"/>

                            <paraformat

                                jcr:primaryType="nt:unstructured"

                                items="paraformat:getFormats:paraformat-pulldown"

                                ref="paraformat"/>

                        </popovers>

                    </inline>

                    <dialogFullScreen

                        jcr:primaryType="nt:unstructured"

                        toolbar="[format#bold,format#italic,format#underline,justify#justifyleft,justify#justifycenter,justify#justifyright,lists#unordered,lists#ordered,lists#outdent,lists#indent,links#modifylink,links#unlink,table#createoredit,#paraformat,image#imageProps]">

                        <popovers jcr:primaryType="nt:unstructured">

                            <paraformat

                                jcr:primaryType="nt:unstructured"

                                items="paraformat:getFormats:paraformat-pulldown"

                                ref="paraformat"/>

                        </popovers>

                    </dialogFullScreen>

                    <tableEditOptions

                        jcr:primaryType="nt:unstructured"

                        toolbar="[table#insertcolumn-before,table#insertcolumn-after,table#removecolumn,-,table#insertrow-before,table#insertrow-after,table#removerow,-,table#mergecells-right,table#mergecells-down,table#mergecells,table#splitcell-horizontal,table#splitcell-vertical,-,table#selectrow,table#selectcolumn,-,table#ensureparagraph,-,table#modifytableandcell,table#removetable,-,undo#undo,undo#redo,-,table#exitTableEditing,-]"/>

                </cui>

            </uiSettings>

        </description>

        <descriptionFromLinkedPage

            jcr:primaryType="nt:unstructured"

            sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"

            checked="{Boolean}false"

            fieldDescription="When checked, populate the description with the linked page's description."

            name="./descriptionFromPage"

            text="Get description from linked page"

            uncheckedValue="{Boolean}false"

            value="{Boolean}true"/>

         <eyebrow

            jcr:primaryType="nt:unstructured"

            sling:resourceType="granite/ui/components/coral/foundation/form/textfield"

            fieldDescription="A title to display as the eyebrow for the teaser."

            fieldLabel="Eyebrow"

            name="./eyebrowText"/>

    </items>

</descriptionGroup>

                                              

    

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

01-11-2019

Hi,

When you overlay using sling resource merger, it combines the property.

you can hide properties and nodes and achieve the desired group of plugins

Using the Sling Resource Merger in AEM

Answers (0)