Read Desing Dialog data from sling model

Avatar

Avatar

ajinkayk6258253

Avatar

ajinkayk6258253

ajinkayk6258253

26-11-2019

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

albini65002106

Avatar

albini65002106

albini65002106

26-11-2019

Get the reference to the currentStyle

@ScriptVariable 

private Style currentStyle;

Get the properties from currentStyle

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

Answers (1)

Answers (1)

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

26-11-2019

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