[AEM 6.6] How can I edit a XF's policies? | Community
Skip to main content
Jeanmaradiaga
Level 3
September 29, 2021
Solved

[AEM 6.6] How can I edit a XF's policies?

  • September 29, 2021
  • 1 reply
  • 1568 views

Hello,

 

I have a Header component that I am using in a experience fragment, my Header has a responsive grid inside because I want to be able to add modular Header component like Nav Items:

<sly data-sly-resource="${resource @ resourceType='wcm/foundation/components/responsivegrid'}"></sly>

 

This seems to work fine and I was able to create a experience fragment for the header with a .xml file but when I try to add navigation items from the XF Editor I don't see the option to add my Nav Item component, it looks like I can only add the regular groups, it currently looks like this:

 

But what I need is for it to look like this:

 

I thought this could be done by only modifying the policies so under 

ui.content/src/main/content/jcr_root/conf/kg-commons/settings/wcm/policies/.content.xml

I went and added two new policies like so:

 

But this doesn't seem to work, any ideas? I tried to do it from http://localhost:4502/editor.html/conf/kg-commons/settings/wcm/templates/xf-web-variation/structure.html but I don't think that is the correct way.



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 Sanjay_Bangar

Hi @jeanmaradiaga ,

                                   Go the Experience Fragment  and  Edit the template of the experience fragment  and add your group (which contains your component).Make sure that you need to update the policy of layout container.

 

Kr,

Sanjay

1 reply

Sanjay_Bangar
Community Advisor
Sanjay_BangarCommunity AdvisorAccepted solution
Community Advisor
September 30, 2021

Hi @jeanmaradiaga ,

                                   Go the Experience Fragment  and  Edit the template of the experience fragment  and add your group (which contains your component).Make sure that you need to update the policy of layout container.

 

Kr,

Sanjay