Inline editor does not work for template content blocks (5.1, 6.1 Sitefinity)
Hi,
To repro:
1. create new template
and content block and some text to it
publish
Create new page based on just created template
add content block and some text in it
publish
Now you can go to page and both text content blocks are shown. Enable inline editing tools. You can see two edit buttons: one for content block on a page and one for content block on a template. When you edit content block on a page, everything works as expected. But when you try editing content block on a template nothing happens. if you check put response you will see:
""Detail":"Unable to cast object of type 'Telerik.Sitefinity.Pages.Model.TemplateControl' to type 'Telerik.Sitefinity.Pages.Model.PageControl'.""
I know that we could use shared content blocks and etc. workarounds, but in a long run this issue will create an unnecessary overhead.
Thanks
Tomas
Hello Tomas,
I have answered to you in the support ticket you have opened.
Regards,
Kaloyan
Telerik
Hi Kaloyan
What was the answer?
Hi Kurren,
Here is the reply provided in the support ticket:
By design there is no way to edit a page template using Editing tools. If you edit a content block placed in a template the changes will affect all the pages which using this template. Because of this the only available option to edit a template is to do it in the backend. The actual problem is that the Edit button should not appear when the content block is on the template.