Issues with Style System | Community
Skip to main content
Level 6
Mar 17, 2021 9:16 PM UTC
Solved

Issues with Style System

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.
Rohit_Utreja
Rohit_UtrejaAccepted solution
New Participant
Mar 18, 2021 4:55 AM UTC

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

 

6 replies

Level 2
Mar 19, 2021 3:21 AM UTC
This generally doesn't happen , i guess you might have caching issue or dispatcher configurations are blocking it
Translate
Nikhil-Kumar
New Participant
Mar 18, 2021 1:34 PM UTC

@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

Translate
kautuk_sahni
Employee
Mar 19, 2021 9:40 AM UTC
@nikhil-kumar, good to see you back.
Translate
Kautuk Sahni
VeenaVikraman
New Participant
Mar 18, 2021 6:43 AM UTC

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. 
Translate
Rohit_Utreja
Rohit_UtrejaAccepted solution
New Participant
Mar 18, 2021 4:55 AM UTC

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

 

Translate
Umesh_Thakur
New Participant
Mar 18, 2021 4:16 AM UTC

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

Translate