Generic content
Hi,
In the generic content editor, there is a drop down box that contains styles such as heading 1, paragraph e.t.c. How can we add more styles to this drop down list?
Thanks,
Annie
Hello Annie,
You should map the template for CotentBlock control which contains the declaration of HtmlField control that wraps RadEditor control. Note that HtmlField is required control. Then you can set the ToolsFile of the RadEditor and populate the paragraphs.
Regards,
Ivan Dimitrov
the Telerik team
Hi Ivan,
Is the content block designer available in Sitefinity 3.7 sp4?
Thanks,
Annie
Hello Annie,
Yes it is. It templates is GenericContentDesigner.ascx and it can be downloaded from the external templates archive available in Downloads section of your account.
Regards,
Ivan Dimitrov
the Telerik team
Hi Ivan,
I am getting the following error:
Element "Resourcelinks" is not a know element
Thanks,
Annie
Hello Annie,
Could you specify where you are getting the error?
Kind regards,
Ivan Dimitrov
the Telerik team
Hi Ivan,
I downloaded the external template for genericcontentdesigner. I have attached an image of the error
Thanks,
Annie
Hello Annie,
The problem is that some of the controls cannot be rendered in design mode of Visual Studio, but this will not affect the behavior of the control on the site when you browse it. These controls does not have design support for VS.
Kind regards,
Ivan Dimitrov
the Telerik team
Hi Ivan,
Thanks for all you help. I have mapped the genericontentdesigner, but I am still a bit confused about how to use this to add more styles to styles dropdownlist on the generic content. What our designer wants to do is use the existing styles in the drop down list and add more styles to this, how would I do that?
Thanks,
Annie
You're going to want the paragraph node of the tools.xml file
<paragraphs>
<paragraph name="Normal" value="<p>" />
<paragraph="<h3>Heading 3</h3>" value="<h3>" />
</paragraphs>
Once you get it the way you want just do a replace on the "< and make it "< (needs to be encoded sitting in an XML file)