Issues with Style System

Avatar

Avatar

aemninja

Avatar

aemninja

aemninja

17-03-2021

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Rohit_Utreja

Avatar

Rohit_Utreja

Rohit_Utreja

17-03-2021

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

 

Answers (3)

Answers (3)

Avatar

Avatar

Nikhil-Kumar

MVP

Avatar

Nikhil-Kumar

MVP

Nikhil-Kumar
MVP

18-03-2021

@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

Avatar

Veena_Vikram

MVP

Avatar

Veena_Vikram

MVP

Veena_Vikram
MVP

17-03-2021

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

Avatar

Umesh_Thakur

MVP

Avatar

Umesh_Thakur

MVP

Umesh_Thakur
MVP

17-03-2021

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