Skip to content
This repository was archived by the owner on Dec 13, 2022. It is now read-only.
This repository was archived by the owner on Dec 13, 2022. It is now read-only.

Include listed pages of parent draft #45

@muttenzer

Description

@muttenzer

Hello David,

Thank you for your great plugin!

I have a quick question:
Is it possible to include listed pages of a parent draft in the sitemap?

I have a parent page(microcases) which has a status of draft and some children pages(microcases-case) with the status listed. The microcases page doesn't exist, it only fulfills the purpose of a "bucket". The microcases-case pages are listed on the homepage of the website and linked from there. There is no menu entry for the microcases-cases.
I tried to use a combination of includeUnlistedWhenTemplateIs and includeUnlistedWhenTemplateIs. Unfortunately, it didn't work out because the children of unlisted pages are ignored even though they are set as listed. Which does sort of makes sense, but in my case is what I would like to have:

example.com/microcases => not visible in sitemap (unlisted in kirby)
example.com/microcases/case-a => visible in sitemap (listed in kirby)
example.com/microcases/case-b => visible in sitemap (listed in kirby)
example.com/microcases/case-z => visible in sitemap (listed in kirby)

I would appreciate your help on that issue. Thank you a lot!

Best,
Timo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions