isaactopo / xmlsitemap

This plugin provides a straightforward approach to creating XML Sitemaps, especially for sites with multiple languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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