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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Issues with Style System

aemninja
Level 4
Level 4

Hello All - We are encountering an issues with the Style system. The styles are configured in the template and the respective cq:styleids are stored in the component's node as we are using the styles in the component. It is working fine in Author and Publish instance. When it comes to dispatcher, the style are not getting applied. I have verified the following config as well but no luck. Can somone tell me what is required to load the style defined in the template editor.

 

system/console/jmx/com.adobe.cq.wcm.style%3Atype%3DComponentStyleInfoCacheMBean

ComponentStyleInfo Cache Configuration

1 Accepted Solution
Rohit_Utreja
Correct answer by
Level 4
Level 4

@aemninja ,

 

You can refer to the style path and check that in the end site from the dispatcher whether it is loading or not.
If you see the style URL in the page source, try to open it in a new window, it should not be blocked.

 

if this is blocked, you might get some error on the page. If this is the case, styles have been blocked by the dispatcher so you need to add a dispatcher rule to allow it.

 

View solution in original post

6 Replies
Umesh_Thakur
Community Advisor
Community Advisor

Can you once check whether client libs are allowed on Dispatcher or not ?

Rohit_Utreja
Correct answer by
Level 4
Level 4

@aemninja ,

 

You can refer to the style path and check that in the end site from the dispatcher whether it is loading or not.
If you see the style URL in the page source, try to open it in a new window, it should not be blocked.

 

if this is blocked, you might get some error on the page. If this is the case, styles have been blocked by the dispatcher so you need to add a dispatcher rule to allow it.

 

View solution in original post

Veena_Vikram
Community Advisor
Community Advisor

Can you verify few things below

 

  1. See if your style values ( class names) are getting applied to the element when rendered via Dispatcher ? 
  2. If yes, then your style system has no issue , but the issue is with your dispatcher caching for your CSS I believe. 
Nikhil-Kumar
Community Advisor
Community Advisor

@aemninja -

Initial check on the Dispatcher would be checking out the styles in the view-source. Also I encountered the same issue sometimes back, so I just allowed it by adding a dispatcher rule to allow the library.

Thanks,
Nikhil Kumar

shivangi_agrawal
Level 2
Level 2
This generally doesn't happen , i guess you might have caching issue or dispatcher configurations are blocking it