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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Syncing Asset folder policies to repository in AEM 6.5

Avatar

Level 2

We have set up policies for a few asset folders to only allow Content Fragment Models by Path. We want to sync these policies available under /content/dam/<folder>/jcr:content/policies/cfm/ node as a value of property policy-cfm-allowedModelsByPath. I'm using VS code AEM sync extension to sync all my contents to the repository but I can't see an option to sync these policies. Can anyone suggest if we can sync these policies to the repository using the AEM sync extension or any other tool? 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Mukesh_Kumar_Co,

I'm not using VS code but have you tried importing these policies from parent node? Let's say

/content/dam/<folder>/jcr:content/policies

or 

/content/dam/<folder>/jcr:content/policies/cfm

Otherwise, you can create a package for similar locations in your AEM and export them to your repository by extracting a zip file. 

Additionally, you may have to update filter.xml too. For more details please check this article [0].

[0]: https://sourcedcode.com/blog/aem/importing-rep-policy-nodes-in-the-ui-content-maven-content-package

Hope that helps!

Regards,

Santosh 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @Mukesh_Kumar_Co,

I'm not using VS code but have you tried importing these policies from parent node? Let's say

/content/dam/<folder>/jcr:content/policies

or 

/content/dam/<folder>/jcr:content/policies/cfm

Otherwise, you can create a package for similar locations in your AEM and export them to your repository by extracting a zip file. 

Additionally, you may have to update filter.xml too. For more details please check this article [0].

[0]: https://sourcedcode.com/blog/aem/importing-rep-policy-nodes-in-the-ui-content-maven-content-package

Hope that helps!

Regards,

Santosh