Remove some blog posts from Sitemap

Posted by niranjan.k@wolterskluwer.com on 24-Jul-2019 21:00

Hi All,

We have one blog with multiple blog posts under it. I want to include only some of the blog posts in Sitemap and not all. But since the blog has "Include in Sitemap" it is including all the blog posts. Is there a way to exclude some of the blog posts under the blog without having to unpublish?

Thanks,

Niranjan

All Replies

Posted by jread on 25-Jul-2019 14:12

I would recommend adding a custom field(yes/no) to Blog Post to allow or disallow in sitemap.  Then use the sitemap event outlined here to removed items (posts) that should not be in the sitemap based on that field.

knowledgebase.progress.com/.../How-to-modify-the-entries-in-sitefinity-sitemap-using-SitemapGeneratorBeforeWriting-event

This thread is closed