adobe / aem-project-archetype

Maven template to create best-practice websites on AEM.
https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/archetype/overview.html
Apache License 2.0
548 stars 426 forks source link

XF Template referencing invalid policy #1221

Open HitmanInWis opened 2 months ago

HitmanInWis commented 2 months ago

The generated xf-web-varation template has an OOTB policy reference of cq:policy="<site>/components/page/policy". This is not considered a valid "selection" option by AEM's template editor, as policies for <site>/components/xfpage must be stored under a policy subpath of that same type (<site>/components/xfpage).

To see this in action

The impact of this appears to mostly just be confusion, as the "invalid" policy link still appears to work. However, having this invalid link does open up the possibility of a customer scenario where at first changes (e.g. new clientlibs) added to the standard page policy meant for pages automatically updates Experience Fragments as well, but then after someone makes an update to the Experience Fragment page policy (triggering a new, separate policy to be created) changes to the standard page policy no longer impact Experience Fragments.