- Issue created by @brockfanning
- πΊπΈUnited States merauluka
I just recently was able to do this by creating a custom URL Generator based on the EntityUrlGenerator plugin.
There you can alter the entity query used to identify which entities you wish to have included in the final result set. I used it to key off of a custom boolean on my site. That way I could intentionally exclude content based on whatever I wanted.
And since it's using an entity query, you can query based on anything the entity query system and access.
- Status changed to Fixed
3 months ago 11:38pm 13 August 2024 - π©πͺGermany gbyte Berlin
Either create a new URL generator by code and use it within the UI or just use the sitemap links alter hook (see Readme) to filter out entities beyond a certain creation date.
When it comes to having certain content types indexed in certain sitemap, this is already possible without custom code.
Let me know if yiu need further pointers.
Automatically closed - issue fixed for 2 weeks with no activity.