Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XF Template referencing invalid policy #1221

Open
HitmanInWis opened this issue Sep 4, 2024 · 0 comments
Open

XF Template referencing invalid policy #1221

HitmanInWis opened this issue Sep 4, 2024 · 0 comments

Comments

@HitmanInWis
Copy link

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

  • Create a default project from archetype
  • Go to Template editor
  • Select the "Web Variation" XF template
  • Go to edit "Page Policy"
  • Notice that the editor shows "New Policy" b/c it is unable to choose the linked policy
  • To save, you must name a new policy, at which point the policy will be created in the correct location

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant