4.1 upgrade contenblock issue
Hello,
I have a couple of problems since the 4.1 upgrade. First, I had to edit the contentblock control while I was developing the site on 4.0, for it to allow me to use javascript on the control. This is what I changed on ContentBlockDesignerTemplate.ascx
this is what it looks like:
<%@ Control Language="C#" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sf" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI.Fields" TagPrefix="sf" %>
<
sf:ResourceLinks
id
=
"resourcesLinks"
runat
=
"server"
>
<
sf:ResourceFile
Name
=
"Styles/Window.css"
/>
</
sf:ResourceLinks
>
<
sf:FormManager
ID
=
"formManager"
runat
=
"server"
/>
<
divstyle
=
"width: 660px; overflow: hidden;"
>
<
sf:HtmlField
ID
=
"htmlEditor"
runat
=
"server"
Width
=
"99%"
Height
=
"370px"
EditorContentFilters
=
"None"
EditorStripFormattingOptions
=
"MSWord,Css,Font,Span,ConvertWordLists"
DisplayMode
=
"Write"
FixCursorIssue
=
"True"
>
</
sf:HtmlField
>
</
div
>
<
scripttype
=
"text/javascript"
>
$("body").addClass("sfContentBlockDesigner");
</
script
>
background: #fff url("/Amerex/images/layout/bg-body-gradient.png") repeat-x 0 0;
Hello John,
We introduced some changes with our 4.1 release requiring each control on the page to have unique individual ID, please take a look at this forum thread where I've provided a sample of the default template we're using for the HtmlField control which is used in the content block editor. Using that template should work with no errors and you should be able to modify it to deliver the desired functionality.
Concerning the second issue, I believe it's related again to the changes in the virtual paths in Sitefinity. We have released a KB article to inform our clients about the changes we have introduced and a recommended way of handling the naming of the Images and Videos folders. Please take a look at it and let us know if any of the problems persist after applying the mentioned fixes.
Best wishes,
Boyan Barnev
the Telerik team