style system doesn't load for first container

shajiahmed

28-07-2020

I have strange issue with container component (core component-> ehi-> ctf heirarchial inheritence) some  customization in ehi but no customization in ctf. when I drop container on the page. First container is not getting style system options, second and successive containers get style options
I looked at crx if node has container as name, no styles are shown but if I add suffix like container-1 I do see styles do show upScreen Shot 2020-07-28 at 11.57.26 AM.png
Looking at debugger tools in chrome I see  this call returning 403 forbidden error
http://localhost:4502/mnt/overlay/wcm/core/content/editor/_jcr_content/content/items/content/content/items/styleselector.form.html/content/crawfordtaylor/en/magento-store/container-test/_jcr_content/root/container/*/
 

Accepted Solutions (1)

Accepted Solutions (1)

Answers (3)

Answers (3)

Arun_Patidar

MVP

30-07-2020

The issue is with the template policy. 

The policy is wrongly set for first container check policy

E.g. In below template policy example, the last container policy should not be set.

 

 

<root
            cq:policy="myapp/components/container/policy_1574694950110"
            jcr:primaryType="nt:unstructured"
            sling:resourceType="wcm/core/components/policies/mapping">
            <container
                cq:policy="myapp/components/container/policy_649128221558427"
                jcr:primaryType="nt:unstructured"
                sling:resourceType="wcm/core/components/policies/mapping">
                  <container
                      cq:policy="myapp/components/container/policy_649128221558426"
                      jcr:primaryType="nt:unstructured"
                      sling:resourceType="wcm/core/components/policies/mapping"/>
                  <myapp jcr:primaryType="nt:unstructured">
                        <components jcr:primaryType="nt:unstructured">
                           <embed   ....  
             </container>
</root>

 

 

shajiahmed

28-07-2020

Well this is not a coding issue to change anything as components work fine everywhere except first one. It could be some template configuration, policy conflict or permissions

shajiahmed

28-07-2020

sorry that is not an acceptable solution. I clicked by mistake. 

I do see divs are getting generated. I compared html. I see first one has <span> tag missing inside div thats why style options are not there. But why it is missing I don't have clue. I don't see any js or java exceptions in log

 

Screen Shot 2020-07-28 at 1.34.38 PM.png