Hey @jdylanmc ,
It's not advisable to change policies on core components. However, there is a way you can save policies for those core components in your project. In fact, I implemented once a case like this.
Step 1: Don't directly use core components, use proxy components from your project pointing to core components.
- Proxy Components refer to a Core Component as their super-type.
- Proxy Components follow the path : /apps/my-site/components (Where core components path : core/wcm/components)
Step 2: Include these components into your template using editable templates policies.
-
cq:policy
|
String
|
my-site/components/structure/page/policy
|
- keep above policies here to reflect your project policies /conf/my-site/settings/wcm/template-types/page/policies/jcr:content
Step 3: Create Templates using above template time & you will see your site components included there.
Step 4: Use AEM OOTB Style Editor to select predefined styles from polices and re-use them across!
Hope this helps,
Aditya.Ch
Thanks,
Aditya Chabuku