Read Desing Dialog data from sling model | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
AlbinIs1Accepted solution
Level 2
Nov 27, 2019 1:47 AM UTC

Get the reference to the currentStyle

@ScriptVariable 

private Style currentStyle;

Get the properties from currentStyle

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

2 replies

AlbinIs1Accepted solution
Level 2
Nov 27, 2019 1:47 AM UTC

Get the reference to the currentStyle

@ScriptVariable 

private Style currentStyle;

Get the properties from currentStyle

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

Translate
Employee
Nov 26, 2019 3:47 PM UTC

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

Translate