Skip to main content
Level 4
November 19, 2021
Solved

How to access Design Dialogue Properties in Sling Model.

  • November 19, 2021
  • 2 replies
  • 2191 views

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

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by BrianKasingli

@lone_ranger,

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

2 replies

Siva_Sogalapalli
Community Advisor
Community Advisor
November 19, 2021
BrianKasingli
Adobe Champion and Community Advisor
BrianKasingliAdobe Champion and Community AdvisorAccepted solution
Adobe Champion and Community Advisor
November 19, 2021

@lone_ranger,

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