Is it possible to use the Sitefinity breadcrumb in a widget template?
I created a module where I want to have the full detail page view show up dynamically versus selecting another existing page. I would like to add an easy way for users to get back to the list view page so have been trying to get a breadcrumb to work, but I am not seeing anything output.
In my widget template for the full details I have added:
<sf:RadBreadCrumb id="RadBreadCrumb" runat="server" />Did you ever get this figured out? I am trying to do something similar and am not able to get the breadcrumbs working in my widget template.
Just wondering if anyone else has gotten this to work?
Hi,
RadBreadCrumb is used inside Sitefinity, it is not used for the front end. You are not able to use the control in a template.
What we could suggest you is to inherit from Breadcrumb and override the LayoutTemplatePath. For instance:
namespace SitefinityWebApp public partial class WebUserControl : Breadcrumb public override string LayoutTemplatePath get return WebUserControl.layoutTemplatePath; set base.LayoutTemplatePath = value; public static readonly string layoutTemplatePath = "~/SitefinityWebApp.Breadcrumb.ascx"; <%@ Register Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" TagPrefix="telerik" %><%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sf" %><div class="sfBreadcrumbWrp"> <sf:SitefinityLabel id="BreadcrumbLabel" runat="server" WrapperTagName="span" HideIfNoText="true" CssClass="sfBreadcrumbLabel" /> <telerik:RadSiteMap runat="server" ID="Breadcrumb" Skin="Sitefinity"> <DefaultLevelSettings ListLayout-RepeatDirection="Horizontal" Layout="Flow"/> </telerik:RadSiteMap></div>