+1-888-365-2779
Try Now
More in this section

Forums / Designing & Styling / Generic content

Generic content

10 posts, 0 answered
  1. Annie
    Annie avatar
    123 posts
    Registered:
    08 Apr 2009
    23 Feb 2011
    Link to this post
    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
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    23 Feb 2011
    Link to this post
    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
  3. Annie
    Annie avatar
    123 posts
    Registered:
    08 Apr 2009
    24 Feb 2011
    Link to this post
    Hi Ivan,

    Is the content block designer available in Sitefinity 3.7 sp4?

    Thanks,
    Annie
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    25 Feb 2011
    Link to this post
    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
  5. Annie
    Annie avatar
    123 posts
    Registered:
    08 Apr 2009
    28 Feb 2011
    Link to this post
    Hi Ivan,

    I am getting the following error:

    Element "Resourcelinks" is not a know element

    Thanks,
    Annie
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    01 Mar 2011
    Link to this post
    Hello Annie,

    Could you specify where you are getting the error?

    Kind regards,
    Ivan Dimitrov
    the Telerik team
  7. Annie
    Annie avatar
    123 posts
    Registered:
    08 Apr 2009
    01 Mar 2011
    Link to this post
    Hi Ivan,

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

    Thanks,
    Annie
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    01 Mar 2011
    Link to this post
    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
  9. Annie
    Annie avatar
    123 posts
    Registered:
    08 Apr 2009
    01 Mar 2011
    Link to this post
    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

  10. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    01 Mar 2011
    Link to this post
    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)
10 posts, 0 answered