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

Forums / Designing & Styling / Editing .ascx file for Content Box

Editing .ascx file for Content Box

3 posts, 1 answered
  1. Stepahnie
    Stepahnie avatar
    18 posts
    Registered:
    19 May 2016
    14 Jun
    Link to this post
    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? 
    Answered
  2. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    Registered:
    01 Jul 2014
    14 Jun
    Link to this post

    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

  3. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    30 Sep 2016
    17 Jun
    Link to this post
    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
     
3 posts, 1 answered