Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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).
Pretty simple to do in your Razor.
var nav = Model.Content.Children.Where(x=>x.TemplateId > 0)
This will return only pages that have a template set.
EDIT: Oh just realised this is a request for SEO checker :P
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.
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" :)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted