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.
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).
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.
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
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
is working on a reply...