public SitemapEntryMetadata GetEntryMetadata(SitemapEntry entry)
        {
            var context = new SitemapEntryMetadataContext(entry);

            Invoke(handler => handler.GetSitemapEntryMetadata(context));
            return(context.Metadata);
        }
Example #2
0
        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
            });
        }
Example #5
0
 public virtual void GetSitemapEntryMetadata(SitemapEntryMetadataContext context)
 {
 }