SEO noindex nofollow tagging.

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
rbaby
Forum Members
Forum Members
Posts: 144
Joined: Thu Feb 07, 2008 10:28 pm

SEO noindex nofollow tagging.

Post by rbaby »

Is there a way to append a meta noindex nofollow tag whenever a page is set to be not searchable?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: SEO noindex nofollow tagging.

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
rbaby
Forum Members
Forum Members
Posts: 144
Joined: Thu Feb 07, 2008 10:28 pm

Re: SEO noindex nofollow tagging.

Post 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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: SEO noindex nofollow tagging.

Post 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}
User avatar
magallo
Dev Team Member
Dev Team Member
Posts: 123
Joined: Thu Mar 24, 2011 12:37 am

Re: SEO noindex nofollow tagging.

Post 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.
Magal Hezi
Pixel Solutions, Technology Partners
magal@pixelsolutions.biz | pixelsolutions.biz

Image
Post Reply

Return to “The Lounge”