Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

common code of Text component to be used in all other component with RTE field

airnavin30
Level 2
Level 2
We have a Text (RTE) component with some new text fields added to one of it's link icon.....we want to add the same text field related to that all other components where we have used field as RTE in a component...How can we reuse the Text component capabilities here?
 
How can we externalize this RTE plug-in  then point to every component whereever it is being used? any example?.
1 Accepted Solution
Theo_Pendle
Correct answer by
Community Advisor
Community Advisor

Hello @airnavin30,

You can re-use parts of your edit dialogs by using a Granite include node: https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/granite-ui...

 For example, by using adding the following node to a cq:dialog, you can re-use the configuration form the Core Components Text cq:dialog:

<include
    jcr:primaryType="nt:unstructured"
    sling:resourceType="granite/ui/components/coral/foundation/include"
    path="core/wcm/components/text/v2/text/cq:dialog/content/items/tabs/items/properties/items/columns/items/column/items/text"/>

 This is the result

Peek 2020-09-14 16-37.gif

:

 

View solution in original post

1 Reply
Theo_Pendle
Correct answer by
Community Advisor
Community Advisor

Hello @airnavin30,

You can re-use parts of your edit dialogs by using a Granite include node: https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/granite-ui...

 For example, by using adding the following node to a cq:dialog, you can re-use the configuration form the Core Components Text cq:dialog:

<include
    jcr:primaryType="nt:unstructured"
    sling:resourceType="granite/ui/components/coral/foundation/include"
    path="core/wcm/components/text/v2/text/cq:dialog/content/items/tabs/items/properties/items/columns/items/column/items/text"/>

 This is the result

Peek 2020-09-14 16-37.gif

:

 

View solution in original post