25-05-2022
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Thanks @kautuk_sahni for sharing this. I am curious know how the multiple externalizer domains will be handled with this implementation with SitemapScheduler. Eg. I have 2 website domains in on my publish instance :
Domain 1 - https://demo1.com
Domain 2 - https://demo2.com
Domain 1 is configured to point to /content/domain-1 on dispatcher
Domain 2 is configured to point to /content/domain-2 on dispatcher
I also setup a sitemapscheduler to generate sitemap at specific time interval.
Now for domain-1/sitemap.xml, it should generate sitemap with https://demo1.com prefixed in path while for domain-2 it should have https://demo2.com in sitemap urls.
Do we need to write 2 separate implementations of sitemap generators by passing different externalizer keys? Even if we try to have 2 implementations, implementation will higher ranking will be in affect other one will be ignored. Also, how the scheduler will be forced to generate 2 separator sitemap implementations?
Just trying to think over it, may be we need to customize the SitemapLinkExternalizer implementation and use this custom externalizer into our MySitemapGenerator should work. OOTB SitemapLinkExternalizer implementation may not work for this scenario. Any thoughts?
Thanks,