Can i create two dialog for a content component | Community
Skip to main content
October 16, 2015
Solved

Can i create two dialog for a content component

  • October 16, 2015
  • 6 replies
  • 1706 views

Hi,

    I was working on the Student workbook where there is an excercise to create a dynamic Title Component to change the title by the author.

I created one more dialog component to see whether my second dialog is appearing or not. But it is not appearing only the first one is coming, please explain me why? Also advice me whether it is allowed to create multiple dialogs or not? Attached a screenshot for your reference.

regards

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 ogill

When you create a dialog it needs to be called dialog(classic) or cq:dialog(touch ui). You can't create multiple dialogs for the same interface i.e classic/touch ui

If you have complex functionality to implement in your dialog, create separate tabs to group your widgets

6 replies

smacdonald2008
Level 10
October 16, 2015

Typically, the only way that a component has 2 dialogs is one for Touch UI and the other for Classic UI. See:

[img]dialogJCR.png[/img]

For more details about building a component with 2 dialogs (one for Touch and the other for Classic) -- see: 

https://helpx.adobe.com/experience-manager/using/creating-touchui-component.html

ogillAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

When you create a dialog it needs to be called dialog(classic) or cq:dialog(touch ui). You can't create multiple dialogs for the same interface i.e classic/touch ui

If you have complex functionality to implement in your dialog, create separate tabs to group your widgets

Level 8
October 16, 2015

What's the use case for 2 dialogs?

October 16, 2015

Hi, Thanks for the reply.

October 16, 2015

Not specific to any use case, just i am playing with it.

October 16, 2015

Hi Thanks for the reply.