currentStyle.<propertyName> is returning null in cq5 publisher, which is working perfectly fine in author.
I checked that cq:designPath is same in author and publish but when I am using ${currentStyle.path} to get the design path in author and publish then there is a slight difference i.e.
author:
/etc/designs/default/jcr:content/default-page/par-main/column-control/par-col-1/breadcrumb
publish:
/etc/designs/default/jcr:content/default-page/column-control/par-col-1/breadcrumb
I tried creating a new template with a new parsys say “par-main-1” but then “par-main-1” was missing in publisher.
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.