Design Dialog vs Regular Dialog | Community
Skip to main content
Level 2
Jun 20, 2018 4:26 PM UTC

Design Dialog vs Regular Dialog

Hi Team!

Say we have a component with styles system (which was made through a component's design dialog) and a regular dialog with some initial data. When we apply a style on newly added component without submitting regular dialog, then somehow regular dialog's initial properties vanish.

I'm curious if it's a bug or desired behavior?

Thank you

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

12 replies

arunpatidar
New Participant
Jun 20, 2018 9:12 PM UTC

Hi,

I am not sure if this is relevant or not.

If you don't open regular dialog , dialog property won't be saved. This is a desire behaviour.

Which are you using static template or editable template?

If you are using editable template in AEM 6.4 you can handle styling of components with component policy without dialog.

Here is the example of OOTB Title component:

But it won't applied default class, you may hard code default class in component div and variant can be used from component style.

Thanks

Arun

Translate
Arun Patidar
Ratna_Kumar
Level 10
Jun 20, 2018 4:43 PM UTC

Hi,

Basically a design dialog changes made only to a template level.

And dialog - A dialog for the component is just for that particular component.

I suggest, use design dialog only when you want to include component in template level..Example - A logo component.

Thanks,

Ratna Kumar.

Translate
Level 2
Jun 20, 2018 4:56 PM UTC

Hi Ratna,

true, but I want to stress that we use design dialog at component level (for example, we-retail component list has a design dialog, see /apps/core/wcm/components/list/v1/list/cq:design_dialog).

Translate
smacdonald2008
Level 10
Jun 20, 2018 6:40 PM UTC

At the component level - you should be using a component dialog.

Translate