Inline editor does not work for template content blocks (5.1

Posted by Community Admin on 04-Aug-2018 13:35

Inline editor does not work for template content blocks (5.1, 6.1 Sitefinity)

All Replies

Posted by Community Admin on 14-Aug-2013 00:00

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

Posted by Community Admin on 19-Aug-2013 00:00

Hello Tomas,

I have answered to you in the support ticket you have opened.

Regards,
Kaloyan
Telerik

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 01-Aug-2014 00:00

Hi Kaloyan

 What was the answer?

Posted by Community Admin on 05-Aug-2014 00:00

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.

Keep in mind that this discussion is related with our old implementation of inline editing. 

Regards,
Kaloyan
Telerik
 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed