Exclude pages without templates from sitemap automatically
Admittedly, this is a super lazy request.
Instead of setting exclude from sitemap / document type in settings, it would be nice if this would be done automatically. I don't see any use cases where you would want to index a page without a template anyway?
There is a "global" exclude naviHide from sitemap, however I find myself (navi)hiding pages where I do want subpages to be indexed, sometimes even the page itself (just not show up in the mainmenu, for example a cookie info page).
Sometimes people assign templates per request so I won't exclude by default. However you can exclude complete docutypes for the xml sitemap. That way those documents don't get included in the sitemap.
Exclude pages without templates from sitemap automatically
Admittedly, this is a super lazy request.
Instead of setting exclude from sitemap / document type in settings, it would be nice if this would be done automatically. I don't see any use cases where you would want to index a page without a template anyway?
There is a "global" exclude naviHide from sitemap, however I find myself (navi)hiding pages where I do want subpages to be indexed, sometimes even the page itself (just not show up in the mainmenu, for example a cookie info page).
Thanks
Hey Sean
Pretty simple to do in your Razor.
This will return only pages that have a template set.
EDIT: Oh just realised this is a request for SEO checker :P
HI Sean,
Sometimes people assign templates per request so I won't exclude by default. However you can exclude complete docutypes for the xml sitemap. That way those documents don't get included in the sitemap.
Cheers,
Richard
Oh yea, I never thought of that use case. Setting excludes on document types is not that hard, just a lazy mans request..
At least "If you don't ask you don't get" :)
Cheers
is working on a reply...