+1-888-365-2779
Try Now
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?

4 posts, 0 answered
  1. Corby
    Corby avatar
    48 posts
    Registered:
    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>
                 </
    div>
               <h2 id="start">Our Brands</h2>
        </div>
    </div>

    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"/>
                   </telerik:RadSiteMap>
     
     <!--This is the closest to a page title, 'SelectedPageTitle' I could find in my list of fields available in the breadcrumb template editor screen. -->
    </div>
    <h2 id="start">
    <sitefinity:TextField runat="server"  DisplayMode="Read" Value='<%# Eval("SelectedPageTitle")%>' />
    </h2>
            </div>
        </div>

    Sitefinity 5 if it makes any diff.  Tnx.
  2. Matt
    Matt avatar
    42 posts
    Registered:
    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
    Registered:
    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
    Registered:
    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.

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