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?
Solved! Go to Solution.
Views
Replies
Total Likes
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
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