Generic content

Posted by Community Admin on 05-Aug-2018 19:06

Generic content

All Replies

Posted by Community Admin on 23-Feb-2011 00:00

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

Posted by Community Admin on 23-Feb-2011 00:00

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

Posted by Community Admin on 24-Feb-2011 00:00

Hi Ivan,

Is the content block designer available in Sitefinity 3.7 sp4?

Thanks,
Annie

Posted by Community Admin on 25-Feb-2011 00:00

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

Posted by Community Admin on 28-Feb-2011 00:00

Hi Ivan,

I am getting the following error:

Element "Resourcelinks" is not a know element

Thanks,
Annie

Posted by Community Admin on 01-Mar-2011 00:00

Hello Annie,

Could you specify where you are getting the error?

Kind regards,
Ivan Dimitrov
the Telerik team

Posted by Community Admin on 01-Mar-2011 00:00

Hi Ivan,

I downloaded the external template for genericcontentdesigner. I have attached an image of the error

Thanks,
Annie

Posted by Community Admin on 01-Mar-2011 00:00

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

Posted by Community Admin on 01-Mar-2011 00:00

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

Posted by Community Admin on 01-Mar-2011 00:00

You're going to want the paragraph node of the tools.xml file


<paragraphs>
    <paragraph name="Normal" value="&lt;p>" />
    <paragraph="&lt;h3>Heading 3&lt;/h3>" value="&lt;h3>" />
</paragraphs>

Once you get it the way you want just do a replace on the "< and make it "&lt; (needs to be encoded sitting in an XML file)

This thread is closed