Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David Peck 687 posts 1863 karma points c-trib
    Jun 30, 2016 @ 09:56
    David Peck
    0

    SEOChecker.Core.DataTypeValues.SEOCheckerXMLSitemapValues

    I'm trying to create my own sitemap.xml, because I need to customize it more than is possible currently. However I need to deserialize the DynamicXML that I'm returned from the IPublishedContent in to SEOChecker.Core.DataTypeValues.SEOCheckerXMLSitemapValues.

    I can't see any way to do this. SEOChecker.Core.Helpers.SerializerHelper.Deserialize<SEOChecker.Core.DataTypeValues.SEOCheckerXMLSitemapValues>(page.XmlSitemap.ToString()); ... just returns a default SEOCheckerXMLSitemapValues object.

    Any help greatly appreciated.

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Jun 30, 2016 @ 09:59
    Richard Soeteman
    0

    Hi David,

    This Data object needs the complete context of the page. It could work if you just add the xml datatype to each page.

    Best,

    Richard

  • David Peck 687 posts 1863 karma points c-trib
    Jun 30, 2016 @ 12:51
    David Peck
    0

    Thanks Richard. I was processing it in a controller so DynamicXml was a bit tricky. I'm sure there was a way to make it work, but actually I've managed to use your sitemap thingy anyway (100s of pages had no template id but instead the template was set in the controller and so weren't in the sitemap.xml, but I've just create a Migration to set a default template for them).

    Thanks for you help

Please Sign in or register to post replies

Write your reply to:

Draft