Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Create Global Policies

Avatar

Level 2

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.

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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.

 

Avatar

Level 5

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