So we already have a custom site map generation service in our Sitecore 9.2
solution, to generate standard sitemap.xml
files, which is working absolutely perfectly. However, we now want to extend it to include image/video/assets
as well along the lines of https://developers.google.com/search/docs/advanced/sitemaps/image-sitemaps.
Is there a way, programmatically, to find all the media library
items that the current published version of an item uses (including all the components, placeholders, etc. that are on the page) ? Or are we going to have to use a HTML scraper on every page in the sitemap XML file ?