Issues with Style System | Community
Skip to main content
March 17, 2021
Solved

Issues with Style System

  • March 17, 2021
  • 5 replies
  • 2141 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Rohit_Utreja

@test1234567 ,

 

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.

 

5 replies

Umesh_Thakur
Community Advisor
Community Advisor
March 18, 2021

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

Rohit_Utreja
Community Advisor
Rohit_UtrejaCommunity AdvisorAccepted solution
Community Advisor
March 18, 2021

@test1234567 ,

 

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.

 

VeenaVikraman
Community Advisor
Community Advisor
March 18, 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. 
Nikhil-Kumar
Community Advisor
Community Advisor
March 18, 2021

@test1234567 -

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

kautuk_sahni
Community Manager
Community Manager
March 19, 2021
@nikhil-kumar, good to see you back.
Kautuk Sahni
March 19, 2021
This generally doesn't happen , i guess you might have caching issue or dispatcher configurations are blocking it