Skip to main content
Level 2
Jan 18, 2016 9:57 AM UTC
Solved

inheriting or Extending Existing Dialog Properties in AEM 6.1

Hi all,

Is it possible to extend the existing dialog properties in Child component. One way of doing that is using infinity.json , is their any other way of doing the same apart from this way. If yes, please guide us with some links for reference.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Jan 20, 2016 6:39 AM UTC

nope.. thats the way to inherit only the dialog.

use .infinity.json to load all the levels of nodes which essentially required

6 replies

Amit_Kumar
Level 10
Jan 19, 2016 4:11 AM UTC

Extending tab or individual widget in dialog is very easy in AEM as everything is stored in JSON format.

Just set a particular widget 's xtype to cqinclude and extend the path down to the individual widget level too, i.e.

To extend custom widget : You can use the xtype as cqinclude and path to the specific widget such as "apps/myproject/dialog/tab2/items/custom.infinity.json" 

Read about learn about various widget options: https://docs.adobe.com/docs/en/aem/6-1/develop/components/widgets.html

Translate
edubey
Level 10
Jan 19, 2016 1:43 PM UTC

Set the component you want to extend as sling:superResouceType

Translate
Amit_Kumar
Level 10
Jan 19, 2016 10:00 PM UTC

This will inherit the whole dialog. I think She is more interested in extending one or more properties from other component.

Translate
Level 2
Jan 20, 2016 5:49 AM UTC

Thank you all for the replies.

Yes ,we are interested in inheriting the properties and above solution will work but just want to know if their is any other approach AEM has  apart from "infinity.json".

Translate
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Jan 20, 2016 6:39 AM UTC

nope.. thats the way to inherit only the dialog.

use .infinity.json to load all the levels of nodes which essentially required

Translate
Level 2
Jan 20, 2016 11:03 AM UTC

Agreed, that's the only way to inherit the properties.

Thank you all for quick responses, help is very much appreciated.

Translate