Skip to main content
Level 6
ago 30, 2023 5:53 a. m. UTC
Resuelto

Unable to see style system option on first container component

Hi,

I have a container component 

When I add a container on the page, it doesn't have the style system options visible. When I add another one, the new one has them. But not the first one.

 

 

The classes are adding if I choose any style on the second container.

If I rename container with container-1 style system option is showing on container1.

 

 

Este tema ha sido cerrado para respuestas.
Sady_Rifat
Sady_RifatRespuesta
Community Advisor
ago 30, 2023 11:03 a. m. UTC

Ok. The container component you are trying to configure style is under a default container. This means you are following this structure,

. └── root/ └── container -> Defatult container that is comes from template structure/ └── container -> The component that you set the policy

Or similar to this, What happened for the 1st container is the structure policy navigates to it where your styles are not configured. When you add another container it actually finds your configured style policy.
So the solution can be in two ways,
Either change the map of policy from templates/your-template/policies. In my case I changed it

or, you can go to that policy (settings/wcm/policies) and update the policy with styleGroups

 

Hope you will understand my point now.

3 respuestas

Sady_Rifat
Community Advisor
Community Advisor
ago 30, 2023 9:32 a. m. UTC

Hello @vani1012 ,

My belief is all your problem is related to your policy. I can give you some hints to find your problem area.

  • Check your templates policy
  • Is it the main layout policy, or does your page structure already refer to the container?
  • If so update your policy it should work.
Traducir
Level 6
ago 30, 2023 10:00 a. m. UTC

Hi @sady_rifat ,

Can you please explain a bit more, I am not getting your point.

 

 

Traducir
Sady_Rifat
Community Advisor
Sady_RifatCommunity AdvisorRespuesta
Community Advisor
ago 30, 2023 11:03 a. m. UTC

Ok. The container component you are trying to configure style is under a default container. This means you are following this structure,

. └── root/ └── container -> Defatult container that is comes from template structure/ └── container -> The component that you set the policy

Or similar to this, What happened for the 1st container is the structure policy navigates to it where your styles are not configured. When you add another container it actually finds your configured style policy.
So the solution can be in two ways,
Either change the map of policy from templates/your-template/policies. In my case I changed it

or, you can go to that policy (settings/wcm/policies) and update the policy with styleGroups

 

Hope you will understand my point now.

Traducir