AEM sitemap - request two sitemaps in the same Node
Hi team ,
I have a request to implement two different Sling sitemaps in the same page/node which will be the language page.
one will be for pages and the other for assets , the content is irrelevant but I’m looking for tips more on the option to invoke or schedule two different sitemaps in the same node like:
- com.mypackage.MyCustomSitemap1.java
- com.mypackage.MyCustomSitemap2.java
and invoke the sitemap like :
en.sitemap.xml
en.sitemap2.xml
I tried setting it up as a different selector extending from ResourceTreeSitemapGenerator and set a selector in here , also registering in the sitemap servlet configuration but it is not working , does anybody has any advice how to configure this scenario ? Is highly appreciate it.