I am using sightly to access the design dialog properties for a component. something like
<span data-sly-test="${currentStyle.delimiter}">${currentStyle.delimiter}</span>
but all I am getting is an empty string.
I tried to resolve the issue by trying out the following.
- Activating the design node
- Deleting the page and creating a new page.
- Deleting components and dragging and dropping the component again on the page.
- I checked the JSON output of currentDesign and all the values am trying to access are available there.
You have two options
if (wcmmode.disabled) { request.setAttribute(Packages.com.day.cq.wcm.api.components.ComponentContext. BYPASS_COMPONENT_HANDLING_ON_INCLUDE_ATTRIBUTE, true); }
Comment out this and everything was back to normal.