Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Design properties in sightly

Avatar

Level 6

How to access design_dialog properties in sightly ?

1 Accepted Solution

Avatar

Correct answer by
Employee

via the ${currentDesign} object.

View solution in original post

7 Replies

Avatar

Correct answer by
Employee

via the ${currentDesign} object.

Avatar

Level 6

Do you how to get inside javascript

Avatar

Level 6

currentDesign didnt work; currentStyle worked. Thanks

Avatar

Level 6

I am able to access design properties by using ${currentStyle.propertyName} in sightly html. I want to access it in sightly javascript. I tried currentStyle.propertyName , but it returned empty value. It works well in sightly html

Avatar

Employee

use currentStyle.get(propertyName,'default-name');

Avatar

Level 4

${currentStyle.propertyName}

where name of the property should replace the propertyName