More in this section
Forums / Developing with Sitefinity / Is it possible to use the Sitefinity breadcrumb in a widget template?

Is it possible to use the Sitefinity breadcrumb in a widget template?

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 0 answered
  1. Stacey
    Stacey avatar
    291 posts
    18 Oct 2012
    19 Dec 2012
    Link to this post
    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" />

    There are no errors and the details view pages comes up fine, but I do not get a bread crumb trail.  Is this possible to use in widgets?  Do I need to add a sitemap source to the widget too?

    If I have to I can just create a child page under the listing page and drop a breadcrumb widget onto the page and then have the details view target this page versus the dynamically generated one, but I am trying to avoid this.
  2. Tien
    Tien avatar
    3 posts
    02 Oct 2012
    19 Feb 2013
    Link to this post

    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?

  3. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    31 May 2017
    22 Feb 2013
    Link to this post

    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
                    return WebUserControl.layoutTemplatePath;
                    base.LayoutTemplatePath = value;
            public static readonly string layoutTemplatePath = "~/SitefinityWebApp.Breadcrumb.ascx";

    Please note that your custom template should contains these elements:
    <%@ 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"/>

    Then implement your logic in the code behind and the template.

    Stefani Tacheva
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
3 posts, 0 answered