Skip to main content
Level 3
Nov 24, 2016 1:10 PM UTC
Solved

Dialog - Reuse Set of Fields in Touch UI

I want to reuse some fields from one component dialog into multiple other component. Objective is to ensure that I don't have to update all the components for a change.

e.g. Image component has 2 fields (Image Path, Alt Text). I want to include Image in 5 other components so that any field addition to Image component later on, does not result changing 5 other components. In this case, other 5 components can have multiple other fields which are local to those components.

How can I solve the problem of reusing set of fields in Dialog box in AEM 62 Touch UI.

I know the concept of overlay and extension but in those cases Dialog boxes cannot import set of fields from other components.

TIA

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Nov 24, 2016 4:52 PM UTC

Also -- ootb page properties is a good example for this – check /libs/foundation/components/page/dialog/items/tabs/items/basic

3 replies

smacdonald2008
Level 10
Nov 24, 2016 2:07 PM UTC

Although i prefer having a 1-1 mapping of JCR nodes that represent a dialog for each component, there is a way to pull in another components dialog. See: 

http://stackoverflow.com/questions/21293839/cq5-inheriting-extended-dialogs

Hope this helps... 

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Nov 24, 2016 4:52 PM UTC

Also -- ootb page properties is a good example for this – check /libs/foundation/components/page/dialog/items/tabs/items/basic

Translate
Level 3
Nov 25, 2016 12:01 PM UTC

Thanks for the pointers Scott. Although I was hoping that there would be a way to import fields within the same Tab instead of creating separate Tabs for reusable fields. I was able to make it work using the example.

Translate