Issue: On AEM 6.4.. When trying to refer an Experience Fragment inside an "Experience Fragment Component" on a sites/page, the "experience fragments without any "cq:xfVariantType" property do not show up. The Experience fragment functions normal.
As of now we have added this via code but there is not way to add this property to the "editable template" other than via crx/de. And which is not a way we can recommend to customers while building editable templates.
Referred this: Configure cq:xfVariantType in experience fragment. and copied the property referring to We.Retail's "Experience Fragment Web Variation" template.
Is this an error with General > Experience Fragment component?
Solved! Go to Solution.
Views
Replies
Total Likes
I believe you are creating experience fragment templates using experience fragment template type.
As a developer, you still need to create template type and there you can add cq:xfVariantType property in initial content.
whenever you will create new xf template using xf template type, cq:xfVariantType property will be added to new templates.
e.g.
/conf/we-retail/settings/wcm/template-types/empty-xf-page/initial/jcr:content
Views
Replies
Total Likes
The cq:xfVariantType {String} web property must be set on the initial template for it to show up.
/conf/<your_organization>/settings/wcm/templates/experience-fragment-web-variation/initial/jcr:content
The templates must be allowed via the cq:allowedTemplates property set at the root jcr:content node of the site.
/content/<your_site>/jcr:content
/conf/<your_organization>/settings/wcm/templates/.*
hi ,
I am facing a similar issue. However the issue is that there is a huge number of already existing experience-fragment in our content.experience-frgament folder for which the property has not been added.
Adding the property cq:xfVariantType to the template , only resolves the issue for all XFs which would be created in the future, however how to make sure the XF variation is visible to the authors for the existing XF pages.
Will this be only possible by bulk-editing all of them and adding the property manually? or it is possible to add this to the overlayed XF component?
Thanking you in anticipation,
Samiksha.
Views
Replies
Total Likes
Check similar post : https://forums.adobe.com/thread/2504677#10457725
Views
Replies
Total Likes
Yes, i agree and adding them did solve the problem. But this has to be done via Code or crx/de and not via AEM UI.
When users/template-authors are building an Editable template on the AEM UI.. they cannot use them unless a "developer" is involved.
So i see the process as..
Something is not correct here?
Views
Replies
Total Likes
Thanks Vish.dhaliwal we were able to identify that XF needs that property from this post. Only We.Retail example had this and is not documented anywhere on the documentation pages. Or if it is, i'm missing it.
Views
Replies
Total Likes
I believe you are creating experience fragment templates using experience fragment template type.
As a developer, you still need to create template type and there you can add cq:xfVariantType property in initial content.
whenever you will create new xf template using xf template type, cq:xfVariantType property will be added to new templates.
e.g.
/conf/we-retail/settings/wcm/template-types/empty-xf-page/initial/jcr:content
Views
Replies
Total Likes
Thanks Arun Patidar.
For reference, i've added the code/fix to WKND here Enabling Users to build Experience Fragments - Added Empty XF Template Type and Sample Template and ...
Thanks surenk for sharing this.
Views
Replies
Total Likes
Views
Likes
Replies