XF 2.2 Exclude page from sitemap

Solution
You can just add this to the page template:

HTML:
<xf:head option="metaNoindex"><meta name="robots" content="noindex" /></xf:head>
Is there a way in the template system to add a value to the <head> tag on a specific page (kinda like xf:js or xf:css)? I could try using the <meta name="robots" content="noindex"> tag then.
 
That’s what I thought. It's a good solution to noindexing, but as it still shows in the Sitemap, we need a better way to exclude specific pages from a the Sitemap.
My message was in direct reply to the message preceding it, which asked how a noindex tag might be added in lieu of excluding it from the sitemap. The OP posted a follow up suggestion if you'd like to vote for it:

 
The OP posted a follow up suggestion if you'd like to vote for it:
Upvoted, but I've also suggested a more elegant solution which is to allow noindexing of a page node via a tickbox in its node settings - which would then automatically exclude from sitemap. I presume the current noindexed threads (via the node settings or thread editing) get automatically excluded from the sitemap. If not then there will be another suggestion on the way :)
 
Back
Top Bottom