# Sitemap XML filtered feed

**URL:** <https://community.bloomreach.com/t/sitemap-xml-filtered-feed/933>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [April 3, 2019, 12:44pm UTC](https://community.bloomreach.com/t/sitemap-xml-filtered-feed/933 "2019-04-03T12:44:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Oud](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/tom_oud/32/277_2.png) [@Tom\_Oud](https://community.bloomreach.com/u/Tom_Oud)\
**Post date:** [April 3, 2019, 12:44pm UTC](https://community.bloomreach.com/t/sitemap-xml-filtered-feed/933/1 "2019-04-03T12:44:38Z")

</div>

The sitemap plugin will list any item in sitemenus. I’m trying to filter those items base on a property on the document that relates to the sitemenu item. I created a SEO compound type with a _noindex_ property. Whenever this property is set to `true`, the sitemap plugin shouldn’t list the URL to this document in the sitemap.xml. In other words this document is ignored.

I was thinking about two parts of a solution for this use case and wanted to check if this is a good solution or if there’s already a solution for this problem.

1. Create a Workflow that subscribes to publication events of a document. Every time a document is (un)published the trigger will fire an action that checks if this _noindex_ property is `true`. If so the document will be added (if not already present) to a blacklist in the JCR. If the value is `false` the document will be removed (if present) from the blacklist in the JCR. While filling the sitemap it’ll check if there are blacklisted document which need to be ignored.
2. The first solution will still apply but won’t be triggered when documents are imported or deleted through the console. Therefore a cronjob has to be made in order to update the blacklist as described in the first solution.

What are your thoughts about this solution and is there a better way to solve this?

---

<div class="post-metadata">

**Author:** ![jpierson](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@jpierson](https://community.bloomreach.com/u/jpierson)\
**Post date:** [February 21, 2022, 4:03pm UTC](https://community.bloomreach.com/t/sitemap-xml-filtered-feed/933/2 "2022-02-21T16:03:26Z")

</div>

Sorry @Tom_Oud, apparently nobody in this community has any useful feedback for you.
