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

Forums / Developing with Sitefinity / Customizing the News Summary field

Customizing the News Summary field

3 posts, 0 answered
  1. syed
    syed avatar
    22 posts
    Registered:
    05 Mar 2009
    07 Dec 2009
    Link to this post
    Hi there

    How to add special effects to news Summary field(TEXT FIELD)  i.e(adding bold, italics, underline etc.,)

    For example
    In my attachment, I want to add some special effects to pharse(800 METRE) (means needs to display in bold).
    How do we implement such effetcs . I understand that this text is taking from text box.

    Thanks for your support asusual in advance

    Thanks
    Syed
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    07 Dec 2009
    Link to this post
    Hello syed,

    Thank you for using our services.

    Since the Summary field in news is a metafield you can replace the textbox, in the control templates for creating and editing news items, with a RadEditor styled to look as textbox having only a few tools that you need to use. For example you can replace the Summary textbox in ~/Sitefinity/Admin/ControlTemplates/News/NewsItemNew.ascx and ~/Sitefinity/Admin/ControlTemplates/News/NewsItemEdit.ascx with the follwong:

    <telerik:RadEditor ID="Summary" 
            ContentAreaCssFile="~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorContentArea.css"
            Width="250px"
            Height="150px"
            ContentFilters="FixUlBoldItalic,FixEnclosingP,IECleanAnchors,MozEmStrong,ConvertFontToSpan,ConvertToXhtml,IndentHTMLContent"
            EditModes="All" runat="server" ToolbarMode="ShowOnFocus" 
            ToolsFile="~/Sitefinity/Admin/ControlTemplates/BasicTools.xml" 
            Skin="WebBlue"
            <CssFiles
                <telerik:EditorCssFile Value="~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorCssFile.css" /> 
            </CssFiles
    </telerik:RadEditor>
    <p class="example">

    You should then map those two templates. Attached is the editor tools file which this editor uses.

    Sincerely yours,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. syed
    syed avatar
    22 posts
    Registered:
    05 Mar 2009
    17 Dec 2009
    Link to this post
    Thanks  Georgiev . It's helped lot.
Register for webinar
3 posts, 0 answered