Create Global Policies | Community
Skip to main content
mancillaign
Level 2
September 8, 2021
Solved

Create Global Policies

  • September 8, 2021
  • 2 replies
  • 1038 views

Hi Mates, 

 

I recently working with policies with different projects in a same AEM instance. 

I just notice that I got an issue while trying to apply policies from a project to another.

 

conf/

   project1/

      settings/

         wcm/

            policies/ all component policies from project1

            templates/ I want to use policies from project2

   project2/

      settings/

         wcm/

            policies/ Policies created by code

 

In this example I have policies created by code in project2 and I want to let Template editors to select policies created from another project because I do not have access to the other project but we want to share policies. 

 

Is there a way to set global policies that are not restricted by projects and all templates can consume?

 

Regards.

 

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 Kiran_Vedantam

Hi @mancillaign,

 

The policies are created to add the styles and configurations that are project specific. If you want to reuse them, try to commit them via code.

 

Hope this helps!

 

Thanks,

Kiran Vedantam.

 

2 replies

Kiran_Vedantam
Community Advisor
Kiran_VedantamCommunity AdvisorAccepted solution
Community Advisor
September 8, 2021

Hi @mancillaign,

 

The policies are created to add the styles and configurations that are project specific. If you want to reuse them, try to commit them via code.

 

Hope this helps!

 

Thanks,

Kiran Vedantam.

 

anupampat
Community Advisor
Community Advisor
September 9, 2021

/conf/global/settings/wcm/template-type or /apps/settings/wcm/template-type try these two places, when the Template type resolves, these two paths are below your project level in the sling hierarchy.