Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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