How to access Design Dialogue Properties in Sling Model. | Community
Skip to main content
New Participant
November 19, 2021
Solved

How to access Design Dialogue Properties in Sling Model.

  • November 19, 2021
  • 2 replies
  • 2163 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

BrianKasingli
BrianKasingliAccepted solution
New Participant
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

Siva_Sogalapalli
New Participant
November 19, 2021