Dialog - Reuse Set of Fields in Touch UI | Community
Skip to main content
New Participant
November 24, 2016
Solved

Dialog - Reuse Set of Fields in Touch UI

  • November 24, 2016
  • 3 replies
  • 2567 views

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.
Best answer by smacdonald2008

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

3 replies

New Participant
November 25, 2016

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.

smacdonald2008
smacdonald2008Accepted solution
New Participant
November 24, 2016

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

smacdonald2008
New Participant
November 24, 2016

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...