Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Create Global Policies

mancillaign
Level 2
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
KiranVedantam1992
Correct answer by
Community Advisor
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
KiranVedantam1992
Correct answer by
Community Advisor
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

anupamp17770278
Level 2
Level 2

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