kirby-xml-sitemap
kirby-xml-sitemap copied to clipboard
Ability to Create Appropriate Mapping for One-Pagers
When we have a "one-pager" structure - i.e., a 'Parent Page' where the children pages represent sections of the parent page, rather than separate pages in their own right - we run into an issue: the plugin seems to create separate URL entries in the sitemap for each of the 'sections' of the Parent Page (because in Kirby each section is a child page of its own).
While we can manually exclude all these subpages from the sitemap, this is also not what we want - because these sections/children pages have images that we DO want listed in the sitemap. If we exclude them from the listing, we also exclude their images...
So, what is required in this use-case is for the sitemap to be able to create a 'Parent Page' entry, that would:
- automatically ignore all children pages (ie., exclude them from the sitemap)
- aggregate the files/images of the children pages into the entry for the Parent Page
Real-world example: we have a site with a Home Page, which is made up of 8 different sections - 'hero banner', 'about us', 'our services', testimonials', 'case studies', 'partners', 'contact' and 'footer'. As many of these sections are quite complex, the Home Page is setup as a Parent Page, and each section is setup as a child page.
In this setup, the plugin will create 9 entries: one for the Home Page, and then one entry for each one of the sections (child pages), entering the child page URLs directly in the sitemap. The images used in each section are listed under the entry for that section/child page in the sitemap.
What we need is to have just ONE entry - for the Home Page - with all images (for all child pages) listed under that one entry...
aggregate the files/images of the children pages into the entry for the Parent Page
We have the same use case, did you find an interim solution?
@sehsarah if you're using Kirby 3, you can use this plugin instead:
https://github.com/omz13/kirby3-xmlsitemap