Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
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