[pmwiki-users] search robot indexing

Patrick R. Michaud pmichaud at pobox.com
Fri Jan 28 09:22:47 CST 2005


On Thu, Jan 27, 2005 at 09:17:40AM -0500, Neil Herber wrote:
> At 2005-01-27  07:54 AM -0600, Patrick R. Michaud is rumored to have said:
> >Admins can explicitly control the value of the robots tag by setting
> >$MetaRobots in a configuration file.  The robots tag can be disabled
> >entirely by setting $MetaRobots to "".
> 
> This might be more flexible if made into a directive similar to (:title 
> text:), for example (:robots index nofollow:).
> 
> This would give the ability to control robot scanning down to the page 
> level. For group-level control, the directive could be put into a group 
> header.
> 
> I thought such a facility existed. Was I dreaming???

No, because I thought it existed also.  Perhaps it's a cookbook.  If not,
it ought to be -- something like (untested):


   Markup('robots', 'directives',
     '/\\(:robots\\s+(\\w[\\w\\s,]*):\\)/e',
     "PZZ(\$GLOBALS['MetaRobots'] = '$1')");

Then one can do any of

   (:robots index,follow:)
   (:robots noindex,follow:)
   (:robots noindex,nofollow:)

to change the <meta name='robots' ... /> tag.

Pm



More information about the pmwiki-users mailing list