Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-08-16 02:37:00

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

rsx_search_engine_meta

I’ve written a simple plugin to generate the meta information used by the google bot to decide whether to index a page or not. If the page generated is an individual article page, then the plugin will generate:<code><meta name=“robots” content=“index,follow”></code>; if the page generated is anything else, the plugin generates: <code><meta name=“robots” content=“noindex,follow”></code>.

Scribbling.net has a couple good articles on this which are worth checking out: Noindex and Help the Googlebot understand your web site

Download the plugin: rsx_search_engine_meta.txt

Last edited by ramanan (2004-08-16 03:05:22)

Offline

#2 2004-08-18 16:16:31

spchampion
Archived Plugin Author
Registered: 2004-06-10
Posts: 62

Re: rsx_search_engine_meta

The plugin needs a small tweak to be valid XHTML. At the end of the meta tags, make sure you use the “/>” syntax.

Otherwise, very cool!

Last edited by spchampion (2004-08-18 16:17:04)

Offline

#3 2004-08-19 23:59:42

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: rsx_search_engine_meta

oh dis. How’d i forget that! Thanks so much, I’ve updated the plugin.

Last edited by ramanan (2004-08-20 00:04:15)

Offline

#4 2005-04-21 01:44:23

graumeister
Plugin Author
From: Ban Bang Por, Samui, Thailand
Registered: 2005-01-16
Posts: 167
Website

Re: rsx_search_engine_meta

that does not really work at my installation. i have the header built with an form. every page shows noindex, follow:

http://die.schreibbloga.de/ here it is ok
http://die.schreibbloga.de/?pg=2 here too
http://die.schreibbloga.de/weblog/174/some-day-robots-will-do-our-jobs here should stand index, follow

where could be the problem? i dont have the lastmodified-headers enabled.


Samui? Samui! (about the life as farang in thailand)
David’s Neighbour

Offline

#5 2005-04-22 02:09:48

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: rsx_search_engine_meta

I’m not sure. It works by checking if the variable $is_article_list is set to true or not. Are you doing anything funky to generate your pages?

Offline

#6 2005-05-05 11:07:00

graumeister
Plugin Author
From: Ban Bang Por, Samui, Thailand
Registered: 2005-01-16
Posts: 167
Website

Re: rsx_search_engine_meta

hi again, i forgot to check this thread and missed your answer, sorry. i have played around a bit today and now it works. the problem is maybe in different handling of the tag in RC3 or something with the fact, that my tag is located in a form, which is included into the pages (templates). i stripped the function to the following:

<code>function rsx_search_engine_meta($atts) { global $is_article_list; if ($is_article_list) { return ‘<meta name=“robots” content=“noindex,follow” />’; } else { return ‘<meta name=“robots” content=“index,follow” />’; }
}</code>

simple, but works.

Last edited by graumeister (2005-05-05 11:07:48)


Samui? Samui! (about the life as farang in thailand)
David’s Neighbour

Offline

#7 2005-11-11 16:12:32

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: rsx_search_engine_meta

This doesn’t seem to work with 4.0 anymore! I’m looking into why now. I was wondering why Google wasn’t indexing anything on my site all this time. Damn. graumeister above do work. I had things set to check for is_article_list before to prevent false positives on some pages. (I think so anyway.)

Last edited by ramanan (2005-11-11 16:16:03)

Offline

#8 2006-09-12 18:17:51

tsuma
New Member
Registered: 2006-08-21
Posts: 5

Re: rsx_search_engine_meta

Hm, any news whether it’ll work with 4.0.3?

Last edited by tsuma (2006-09-12 18:20:31)

Offline

#9 2006-09-13 06:39:07

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,093
Website GitHub Mastodon Twitter

Re: rsx_search_engine_meta

tsuma wrote:

Hm, any news whether it’ll work with 4.0.3?

Although the plugin is very handy, txp code can achive the same results and add another robots command

<code><txp:if_article_list><meta name=“robots” content=“noindex,follow” />
<meta name=“revisit-after” content=“2 days” /></txp:if_article_list>
<txp:if_individual_article><meta name=“robots” content=“index,follow” /></txp:if_individual_article></code>

Last edited by colak (2006-09-13 06:39:26)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB