Editing .ascx file for Content Box

Posted by Community Admin on 05-Aug-2018 12:35

Editing .ascx file for Content Box

All Replies

Posted by Community Admin on 14-Jun-2016 00:00

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? 

Posted by Community Admin on 14-Jun-2016 00:00

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

Posted by Community Admin on 17-Jun-2016 00:00

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
 

This thread is closed