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

Read Desing Dialog data from sling model

ajinkayk6258253
Level 3
Level 3

how can i read design dialog data for a component using sling model ? i'm using static template in my project .

1 Accepted Solution
albini65002106
Correct answer by
Level 2
Level 2

Get the reference to the currentStyle

@ScriptVariable 

private Style currentStyle;

Get the properties from currentStyle

String prop1= currentStyle.get("prop1", String.class);

View solution in original post

2 Replies
jbrar
Employee
Employee

You can use the "com.day.cq.wcm.api.designer.Design" API. More details at [1]

[1] Design ("The Adobe AEM Quickstart and Web Application.")

albini65002106
Correct answer by
Level 2
Level 2

Get the reference to the currentStyle

@ScriptVariable 

private Style currentStyle;

Get the properties from currentStyle

String prop1= currentStyle.get("prop1", String.class);

View solution in original post