Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to Create Appropriate Mapping for One-Pagers #13

Open
luxlogica opened this issue May 31, 2018 · 2 comments
Open

Ability to Create Appropriate Mapping for One-Pagers #13

luxlogica opened this issue May 31, 2018 · 2 comments

Comments

@luxlogica
Copy link

luxlogica commented May 31, 2018

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...

@sehsarah
Copy link

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?

@luxlogica
Copy link
Author

@sehsarah if you're using Kirby 3, you can use this plugin instead:

https://github.com/omz13/kirby3-xmlsitemap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants