Now you can access to the absolute URL of the FTL script to test the sitemap generation. You can also go to http://localhost:8983/solr/#/magnolia/query and execute a Search query on Magnolia core to see if all the expected elements are getting found and shown.
In git repository https://git.magnolia-cms.com/projects/SERVICES/repos/solr_sitemap/ there is a module which has the neccesary templates and class to generate a Sitemap based in SOLR. Module has the following contents:
- Java class: SiteMapTemplatingFunction.java with the templating function necessary to get all Solr Indexes
- Decorations folder: to modify Travel Demo templates and dialogs to allow hide pages in Sitemap.
- Templates folder: with Sitemap template to use directly in Pages App.
Usage of the module: You have to install the module and register the Templating function as described before