If you want to use a Sitefinity control or Widget, but you don't like the format or style, you can get a copy of the Sitefinity internal widget template, modify it, and then reference the modified version (ex. the Search Box).
If you want to know what classes Sitefinity uses on its controls, see the Sitefinity 4.3 documentation
If you want to get an existing control template and modify it, then you need to download and install the Sitefinity SDK, then look for the templates in the following compressed RAR file:
C:\Program Files (x86)\Telerik\Sitefinity 4.3\SDK\Content\Resources\WidgetTemplates.rar
Look in the Designers folder to find the set of control templates (ex. Designers\Search\SearchBoxDesigner.ascx)
In the following example, I have VERY CRUDELY changed how the SearchBox is formatted:
Here is the customized Search Box control:
<%@ Control Language="C#" %> <%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sfweb" %> <%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Services.Search.Web.UI.Public"
TagPrefix="sfSearch" %>
<div style="background-color:#570301;padding:2px;"> <span style="position:relative;top:0px;color:white;font-family:arial;font-style:italic;font-weight:bold;font-size:.9em">SEARCH:</span> <asp:TextBox ID="queryText" runat="server" CssClass="sf_searchText"></asp:TextBox> <input type ="button" id="searchButton" runat="server" style="color:white;background-color:#a1834d;padding-left:2px;padding-right:3px;" value="GO" alt="Search"/> </div>
After you have created your own version of the template, do the following
This is globally change all Search Boxes to the same template for consistency. If you want to vary the format from one instance of the search box then you can change it when you drag and drop the control on a template or page. If the particular control doesn't allow that, then clone the control.
RadEditor - please enable JavaScript to use the rich text editor.
I often get asked why I'm willing to journal all of my Sitefinity discoveries. People think I'm insane to give away for free what I labored over at some point.
Let me answer that in 2 parts:
Talk to us about how we can help YOU!
Keep up with our Sitefinity discoveries! Click on the RSS feed icon below or sign up for our newsletter.