I do not understand anything about this.
I tried the following variations but it did not.
@item.Breadcrumb.Items[0].Name
@item.Breadcrumb.Items.FistOrDefault.Name //Null reference error. All articles have least 1 Group?
@item.Breadcrumb.Name
And why BreadCrumb? I want the name of the Group where the article is member.
http://prntscr.com/eoai1j
foxnetsoft wrote:
Each subelement has Breadcrumb property of the class ArticleBreadCrumbModel.
public partial class ArticleBreadCrumbModel
{
public ArticleBreadCrumbModel()
{
Items = new List<ArticleBreadCrumbModel.BreadCrumbItem>();
}
public bool Enabled { get; set; }
public IList<ArticleBreadCrumbModel.BreadCrumbItem> Items { get; set; }
#region Nested Classes
public class BreadCrumbItem
{
public int Id { get; set; }
public string Name { get; set; }
public string SeName { get; set; }
}
#endregion
}