Hi Team,
Recently, While working on XM Cloud, I ran into wired issue, I did create multiple sites and create templates inside templates->Project-><<my sites folder>>
Now i wanted to now start creating pages from those templates, so i right clicked on my home item of the site and selected "insert from template" option so i can select my "Blog Folder" template and can start creating my Blog items inside it, But with my surprise, it was not showing my site folder at all and i was puzzled as to how do i select my template and why it is not showing those folder? and surprisingly other site which i have it was showing it fine
My template->Project folder actually had those site folders and templates inside it
Solution
I just compared both folder's template and with my surprise the one which was showing fine i.e "TrainingLab" had "/sitecore/templates/System/Templates/Template Folder" and the other site which was not showing had "/sitecore/templates/Foundation/Experience Accelerator/Multisite/Project Folder "
i did not know the reason why both were different, but may be "TrainingLab" was not created locally, but it was created in Cloud by using "Create Site" button, and pulled into my local using serialization, while the other one "BasicSiteA" was created locally using "Create headless site" option when you right click on "Headless Site Collection", So may be there is some different scaffolding happening in different processes.
But i decided to change the template of my "BasicSiteA" to "/sitecore/templates/System/Templates/Template Folder", i just did that and it started showing in the "Insert from Template" dialog
Because i was unsure of what will be consequences of this change, i decided to raise a support ticket and ask them about this behavior and they came up with following
So until the bug is resolved this is the correct workaround to get unblocked, I hope this will help others finding the solution to this puzzle
Comments
Post a Comment