isaactopo/xmlsitemap

include unlisted

Closed this issue · 2 comments

thanks!

how can i include unlisted pages under a specific slug?

Hi @kosmar,
you can include as many pages as you want with the addCollection option.
Something like (not tested):

'isaactopo.xmlsitemap.addCollection' => function () {
    $unlistedPages = page('unlisted-page')->children();
    return $unlistedPages;
},

great thx