Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Issues with Style System

Avatar

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

Avatar

Correct answer by
Community Advisor

@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

Avatar

Community Advisor

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

Avatar

Correct answer by
Community Advisor

@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.

 

Avatar

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. 

Avatar

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

Avatar

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