Hi All,
I am using AEM 6.5 instance. I have created custom editable template and experience fragment based on that custom template. I have created test page based on the same editable template and added Experience fragment component. But while adding or configuring that component, I am unable to add or use my created custom Experience fragment. It is not visible when I browsed it through path browser from Experience fragment dialog.
Any pointers will be helpful.
Views
Replies
Total Likes
Hi @akshayb35452619 ,
Have you enabled the custom XF in template policy ?
Policy is like a design mode, where you can control the components to be available on page.
Please do include custom XF in template policy and it will be available to use on a page.
Hi @akshayb35452619 ,
Is your compoent has dialog or editconfig node? Either one should be present inorder for component to be available in front end. Please check this.
If the issue still not resolved , please share the package. Will have a look
Hi Vaibhavi,
I am using XF component from General group and it has dialog node associated with it.
I have attached the package including the editable template, XF and the page on which I am trying to use it. Let me know for any questions.
HI @akshayb35452619,
If you are unable to locate the newly created XF in path browser of XF component (below screenshot 1), then add cq:xfVariantType property to the XF editable template's initial/jcr:content (screenshot 2)
Example : /conf/learnings/settings/wcm/templates/xf-editable-template/initial/jcr:content
After setting this, create new XF page out of the XF template and then try locating the newly created XF -> you should be able to see it available as you navigate via Path Browser (Experience fragment variation path) field
Screenshot 1:
Screenshot 2:
Reason for adding this :
If you observe the dialog field (Path browser for choosing XF page), it has a property named "variant" -> web.
This is compared with cq:xfVariantType property in the XF page (master variation) which will be available if we add it at template level (to be available in all XF pages created out of that template)
Note : If you don't have any other variation like facebook/pinterest, then we can set it at editable template-type itself. (to flow to template and hence to XF pages)
Hi @akshayb35452619,
After adding the property to the editable template, did you try creating new XF page out of it ?
It might not work for the already created XFs(by then the property is not available)
Can you confirm on the below
Hi Vijayalakshmi,
The editable template is pointing to wcm/foundation/components/page through sling:resourceType property from structure/jcr:content node of template.
Also I am using "General" group XF component.
Let me know for any questions.
Hi @akshayb35452619,
Thanks for the inputs.
In particular, an editable template for experience fragment should have the /initial/jcr:content -> sling:resourceType as "cq/experience-fragments/components/xfpage" or inheriting from this resource. Can you confirm this.
I couldn't locate the package you have sent.
I have followed the exact instructions given by you now I can see the cq:VariantType property is showing in the XF content node but still I am unable to relocate it when we are trying to add the variation path in the XF component on page .
Thanks @Vijayalakshmi_S your solution solved the same issue occurred for me
Views
Likes
Replies
Views
Likes
Replies
Views
Like
Replies