include unlisted
kosmar opened this issue · 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