Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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