private void BuildBreadcrumb(Item i, ICollection <Breadcrumb> fullList) { var currentBreadcrumb = Map <Feature.TemplatesModules.Modules.TemplatesModules.Navigation.Breadcrumb.Breadcrumb>(i); if (i == CurrentItem) { currentBreadcrumb.IsActive = true; } currentBreadcrumb.CssClass = (i.ID == SiteStartItem.ID) ? "home" : string.Empty; // recursively walk up until there is no parent or we reached the start item if (!i.ID.Equals(SiteStartItem.ID) && i.Parent != null) { BuildBreadcrumb(i.Parent, fullList); } // only add if the item is not a bucket item if (BucketManager.IsBucketFolder(i)) { return; } fullList.Add(currentBreadcrumb); }