Page 1 of 1

SEO noindex nofollow tagging.

Posted: Tue Feb 18, 2014 10:43 am
by rbaby
Is there a way to append a meta noindex nofollow tag whenever a page is set to be not searchable?

Re: SEO noindex nofollow tagging.

Posted: Tue Feb 18, 2014 4:19 pm
by Rolf

Re: SEO noindex nofollow tagging.

Posted: Tue Feb 18, 2014 6:07 pm
by rbaby
Thanks Rolf! I am already using the extra attribute tags so I was hoping that there was a built in parameter I can look for when search is turned off/on.

Re: SEO noindex nofollow tagging.

Posted: Tue Feb 18, 2014 7:56 pm
by velden
Try and test (especially if you're using other content types):

Code: Select all

{if $content_obj->getPropertyValue("searchable") === '0'}<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">{/if}

Re: SEO noindex nofollow tagging.

Posted: Sat Feb 22, 2014 12:04 am
by magallo
a while ago, i created this plugin: http://dev.cmsmadesimple.org/project/files/1196
does exactly what you need. I have it on most my sites.