Try Now
More in this section

Forums / Designing with Sitefinity / Add List Item Name to Breadcrumb

Add List Item Name to Breadcrumb

2 posts, 0 answered
  1. Chip Gallent
    Chip Gallent avatar
    41 posts
    06 Nov 2009
    09 Mar 2010
    Link to this post
    I'm using a ListDisplay control on a page and it's set to use the PageList option to display the selected list from the module. How to you set that up so when you click on the page the list item's name shows in the breadcrumbs? I have not included a PageListTemplatePath in the advanced window under Appearance. Would that make a difference?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    19 Oct 2016
    09 Mar 2010
    Link to this post
    Hello Chip Gallent,

    Mapping the external template will not change the behavior of Breadcrumb control. You need to create a custom Breadcrumb control and override InitializeItem method to add a new item. You will need a custom ListDisplay control and append the ID or another parameter in the url when you click on a single item. You can access the current item by overriding PageListItems_ItemCommand

    protected override void PageListItems_ItemCommand(object sender, System.Web.UI.WebControls.RepeaterCommandEventArgs e)
          base.PageListItems_ItemCommand(sender, e);
          IListItem listItem = (IListItem)this.Manager.GetListItem(new Guid(e.CommandArgument.ToString()));

    All the best,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered