Editing .ascx file for Content Box - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Editing .ascx file for Content Box

  • Editing .ascx file for Content Box
  • I want to make minor changes, such as font type and colour changes to the design of the content box/ I have tried writing my own in html but I keep missing something. Does anyone know where to access the original file, so I can copy and tweak it? 
  • Original layout for ContentBlock widget is:

    <%@ Control Language="C#" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.PublicControls.BrowseAndEdit"
        Assembly="Telerik.Sitefinity" %>
    <asp:Literal ID="contentHtml" runat="server"></asp:Literal>
    <sf:BrowseAndEditToolbar ID="browseAndEditToolbar" runat="server" Mode="Edit" Visible="false">
    </sf:BrowseAndEditToolbar>
    <asp:PlaceHolder ID="socialShareContainer" runat="server"></asp:PlaceHolder>

    You can easily find all default templates in Telerik.Sitefinity.Resources.dll. You can decompile Telerik.Sitefinity.Resources.dll and receive all necessary layouts.

    When you will create copy and tweak it, you need to specify location to new layout in Advanced Settings of Content Block widget

  • Hello,

    In addition to the Victor's post you can check this sample how to override the HtmlField (the template used in content block) here:
    http://www.sitefinity.com/blogs/svetoslav-manchevs-blog/2014/01/03/include-script-tags-in-radeditor-in-sitefinity-backend
    The template/s you need for your version could be found here:
    https://github.com/Sitefinity-SDK/SitefinityResources/releases

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items