Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Dialog vs Design Dialog

prasanth_subram
Level 2
Level 2

What are the differences between Dialog and Design dialog ?

1 Accepted Solution
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

A component can be configured for following

  1. Page specific (in this case component dialog is used)
  2. Design/Global (in this case design_dialog is used)

The obvious difference is in their name i.e. “dialog” and “design_dialog”

The way properties (stored content/values) are access:

The way a dialog or design_dialog is defined is exactly same, there are only two differences:
  • Retrieve values from dialog (widget) to jsp: String var= properties.get("","");
  • Retrieve values from design_dialog to jsp: String var= currentStyle.get("","");
Content/values stored via get stored at page level under component’s node. On the other hand, content/value stored via a design dialog is store at design path of your teamplate (see cq:designPath property of root node of your application/page), usually this location is under /etc/design/

If you want to change something on page level you create dialog and if changes are global/template level you go for design dialog.

View solution in original post

1 Reply
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

A component can be configured for following

  1. Page specific (in this case component dialog is used)
  2. Design/Global (in this case design_dialog is used)

The obvious difference is in their name i.e. “dialog” and “design_dialog”

The way properties (stored content/values) are access:

The way a dialog or design_dialog is defined is exactly same, there are only two differences:
  • Retrieve values from dialog (widget) to jsp: String var= properties.get("","");
  • Retrieve values from design_dialog to jsp: String var= currentStyle.get("","");
Content/values stored via get stored at page level under component’s node. On the other hand, content/value stored via a design dialog is store at design path of your teamplate (see cq:designPath property of root node of your application/page), usually this location is under /etc/design/

If you want to change something on page level you create dialog and if changes are global/template level you go for design dialog.

View solution in original post