public SitemapEntryMetadata GetEntryMetadata(SitemapEntry entry) { var context = new SitemapEntryMetadataContext(entry); Invoke(handler => handler.GetSitemapEntryMetadata(context)); return(context.Metadata); }
public override void GetSitemapEntryMetadata(SitemapEntryMetadataContext context) { if (context.Entry.ProviderName != Name) { return; } var tagId = XmlHelper.Parse <int>(context.Entry.Context); context.Metadata.EditRouteValues = GetTagEditRouteValues(tagId); }
public override void GetSitemapEntryMetadata(SitemapEntryMetadataContext context) { if (context.Entry.ProviderName != Name) { return; } if (String.IsNullOrWhiteSpace(context.Entry.Context)) { return; } var contentId = XmlHelper.Parse <int>(context.Entry.Context); context.Metadata.EditRouteValues = GetContentEditRouteValues(_contentManager, contentId); }
public override void GetSitemapEntryMetadata(SitemapEntryMetadataContext context) { if (context.Entry.ProviderName != Name) { return; } var contentId = XmlHelper.Parse <int>(context.Entry.Context); context.Metadata.EditRouteValues = new RouteValueDictionary(new { Area = "IDeliverable.Seo", Controller = "CustomSitemapEntry", Action = "Edit", Id = contentId }); }
public virtual void GetSitemapEntryMetadata(SitemapEntryMetadataContext context) { }