More in this section
Forums / General Discussions / Styling built-in Sitefinity breadcrumb with current page title?

Styling built-in Sitefinity breadcrumb with current page title?

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.
4 posts, 0 answered
  1. Corby
    Corby avatar
    48 posts
    19 Sep 2011
    18 Jul 2012
    Link to this post
    Below is my hard coded breadcrumb HTML that renders properly with my style sheet.

    div id="title-bar">
        <div id="title-bar-center" class="center">
            <div id="breadcrumbs">
                <a href="/home/">Home</a> »
                <a href="/home/brands">Brands</a> »
               <strong>Our Brands</strong>
               <h2 id="start">Our Brands</h2>

    I want to embed the built-in Sitefinity Breadcrumb nav control and be able to grab the current page title to replace the text of "Our Brands" in the h2 tag above.  When I do, like with the below code, no page title appears under the breadcrumb.  Any suggestions please?

    <div id="title-bar">
        <div id="title-bar-center" class="center">
            <div id="breadcrumbs">
                 <sf:SitefinityLabel id="BreadcrumbLabel" runat="server" WrapperTagName="span" HideIfNoText="true" CssClass="sfBreadcrumbLabel" />
                   <telerik:RadSiteMap runat="server" ID="Breadcrumb" >
                   <DefaultLevelSettings ListLayout-RepeatDirection="Horizontal" Layout="Flow"/>
     <!--This is the closest to a page title, 'SelectedPageTitle' I could find in my list of fields available in the breadcrumb template editor screen. -->
    <h2 id="start">
    <sitefinity:TextField runat="server"  DisplayMode="Read" Value='<%# Eval("SelectedPageTitle")%>' />

    Sitefinity 5 if it makes any diff.  Tnx.
  2. Matt
    Matt avatar
    42 posts
    25 Jan 2012
    15 Nov 2012
    Link to this post
    Corby, did you figure out how to do this? I have the same issue.
  3. Sebastian
    Sebastian avatar
    5 posts
    23 Jan 2014
    04 Dec 2014
    Link to this post

    I am having the same problem. How can I access the template properties in the template? eg.SelectedPageTitle. 

    it is working for the CSS Class with <%= this.GetCssClass() %>

    Unfortunatelly <%= this.SelectedPageTitle() %> is not working.

  4. Vassil Vassilev
     Vassil Vassilev avatar
    308 posts
    21 Jan 2015
    09 Dec 2014
    Link to this post
    Hello all,

    There is a blog post by Slavo Ingilizov showing how to extend the breadcrumb widget here:
    Including item titles in the Sitefinity breadcrumb

    It describes how to extend it to display page`s title in both webforms and MVC widgets.

    Hope this helps.

    Vassil Vassilev
    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
4 posts, 0 answered