Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

currentStyle.<propertyName> is returning null in cq5 publisher, which is working perfectly fine in author.

Avatar

Avatar
Validate 1
Level 2
Amitdeol
Level 2

Likes

3 likes

Total Posts

7 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Applaud 25
View profile

Avatar
Validate 1
Level 2
Amitdeol
Level 2

Likes

3 likes

Total Posts

7 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Applaud 25
View profile
Amitdeol
Level 2

15-10-2015

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.

  1. Activating the design node
  2. Deleting the page and creating a new page.
  3. Deleting components and dragging and dropping the component again on the page.
  4. I checked the JSON output of currentDesign and all the values am trying to access are available there.
View Entire Topic

Avatar

Avatar
Validate 1
Level 3
dorianhallward
Level 3

Likes

16 likes

Total Posts

71 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile

Avatar
Validate 1
Level 3
dorianhallward
Level 3

Likes

16 likes

Total Posts

71 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile
dorianhallward
Level 3

19-01-2016

Sorry Promilag - no update from me.  I didn't follow the solution marked above as my page templates are built with jsp, so i left the sightly js using currentDesign.getJSON() to get the required values.