include unlisted
Closed this issue · 2 comments
kosmar commented
thanks!
how can i include unlisted pages under a specific slug?
isaactopo commented
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;
},
kosmar commented
great thx