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

How to access Design Dialogue Properties in Sling Model.

Avatar

Level 4

Hi all,

I need to access design dialogue property i am doing in sightly like this 
${currentStyle.prop/value}

In component Dialogue name = prop/value { prop is node and value is properties of node}

 

How to get value if there is nested node in my Design dialogue where the data are being saved

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@saurabh_kumar_02,

From the Sling Model Injectors, have you tried?

@ScriptVariable
private Design currentDesign;

@ScriptVariable
private Designer designer;

@ScriptVariable
private Design resourceDesign;

You can find the entire list of Sling Model Injectors from here, https://sourcedcode.com/blog/aem/aem-sling-model-injectors-annotations-reference-guide

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

@saurabh_kumar_02,

From the Sling Model Injectors, have you tried?

@ScriptVariable
private Design currentDesign;

@ScriptVariable
private Designer designer;

@ScriptVariable
private Design resourceDesign;

You can find the entire list of Sling Model Injectors from here, https://sourcedcode.com/blog/aem/aem-sling-model-injectors-annotations-reference-guide