Skip to main content
Level 4
11月 19, 2021 12:49 下午 UTC
已解決

How to access Design Dialogue Properties in Sling Model.

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

 

 

此主題已關閉回覆。
BrianKasingli
Adobe Champion and Community Advisor
11月 19, 2021 7:41 下午 UTC

@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 則回覆

Siva_Sogalapalli
Community Advisor
Community Advisor
11月 19, 2021 1:26 下午 UTC
BrianKasingli
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
11月 19, 2021 7:41 下午 UTC

@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

翻譯