Hi, I had to change my template and I've created a new template based on the old one. I changed my page template to "No Template" and tried to change it again to my new template but when I do this, I'm unable to edit the page. To solve this problem, I have to remove the whole content and than I change the template and have to add everything again. Is this a bug? See attached files. noTemplate.jpg - The content without template noTemplateLayout.jpg - The content and the layout page without template layoutbroken.jpg - the page is broken after changing the layout. Regards,
Thanks for using Sitefinity!
No it's not a bug. When you swap templates out on an existing page it doesn't know where the content should go because the <asp:ContentPlaceHolder> are different. You'll notice if you swap templates out with matching IDs for placeholders that the widgets will fall into the placeholder they original resided in. Even in the images where you listed you didn't have a template, technically there is still a template there it is just a default template provided by Sitefinity. Those squares where you can drag and drop are still rendered ContentPlaceHolders so switching out templates would cause them to break. Also, it looks like you haven't applied a theme, this is also why your CSS elements are not lining up properly and it looks broken. To apply a theme you need to go to the template and in the top right you will see a button labeled "styles" from there you can specify your theme. To add a theme go to Administration > Advanced > Frontened Appearance and reference to the folders in your project.
I hope this helps. If you have any questions please let me know!
The example provided was a discussion of moving from one template to a another template not based on each other. Your video demonstrates taking the same base template and changing the layout internally for it. When I do this on a fresh template the content appears in the first available placeholder when switched.
I have brought up how this is handled to our developers. If you have inputs on how you would like to see template changes occur with respect to content organization on the new template feel free to leave a response here and I will let them know.
This leads me to believe it is something with your custom template. If you want you can open a support ticket, send us a copy of your template and theme, and we can see what's causing the problem.
Thank you in advance!
No, they were individually different, independent, templates. If you would like to send me yours in a ticket I would be more than happy to troubleshoot the issue for you.
Thanks in advance!