Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Hook for modifying meta tags?

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


leo_wallentin at hotmail

Aug 14, 2012, 12:18 AM

Post #1 of 3 (178 views)
Permalink
Hook for modifying meta tags?

Hello, this is probably an obvious thing to many of you, but I'm trying to write an extension that provides magic words for changing robot policy tags (nofollow, noindex) at page level (overriding $wgDefaultRobotPolicy, $wgNamespaceRobotPolicies, and $wgArticleRobotPolicies). However, I'm not sure which hook to use for adjusting the meta tags. Ultimately I would like to be able to alter the meta tags after index policies is set to the output object, but before the final html is produced. Any ideas?
Best regardsLeo

_______________Leonard Wallentinleo_wallentin [at] hotmail@leo_wallentin+46 (0) 735 - 933 543
http://svt.se/nyhetslabbethttp://säsongsmat.nuhttp://nairobikoll.se
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


lists at nadir-seen-fire

Aug 14, 2012, 12:44 AM

Post #2 of 3 (179 views)
Permalink
Re: Hook for modifying meta tags? [In reply to]

On Tue, 14 Aug 2012 00:18:07 -0700, Leonard Wallentin
<leo_wallentin [at] hotmail> wrote:

>
> Hello, this is probably an obvious thing to many of you, but I'm trying
> to write an extension that provides magic words for changing robot
> policy tags (nofollow, noindex) at page level (overriding
> $wgDefaultRobotPolicy, $wgNamespaceRobotPolicies, and
> $wgArticleRobotPolicies). However, I'm not sure which hook to use for
> adjusting the meta tags. Ultimately I would like to be able to alter the
> meta tags after index policies is set to the output object, but before
> the final html is produced. Any ideas?
> Best regardsLeo
>
> _______________Leonard
> Wallentinleo_wallentin [at] hotmail@leo_wallentin+46 (0) 735 - 933 543
> http://svt.se/nyhetslabbethttp://säsongsmat.nuhttp://nairobikoll.se
>

We already have __INDEX__ and __NOINDEX__, isn't that what you're trying
to do?

--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


leo_wallentin at hotmail

Aug 14, 2012, 1:25 AM

Post #3 of 3 (179 views)
Permalink
Re: Hook for modifying meta tags? [In reply to]

> > Hello, this is probably an obvious thing to many of you, but I'm trying
> > to write an extension that provides magic words for changing robot
> > policy tags (nofollow, noindex) at page level (overriding
> > $wgDefaultRobotPolicy, $wgNamespaceRobotPolicies, and
> > $wgArticleRobotPolicies). However, I'm not sure which hook to use for
> > adjusting the meta tags. Ultimately I would like to be able to alter the
> > meta tags after index policies is set to the output object, but before
> > the final html is produced. Any ideas?
> >
> >
>
> We already have __INDEX__ and __NOINDEX__, isn't that what you're trying
> to do?
>

Wow, I can't believe I missed that! Feeling quite stupid now... Thanks a lot, anyway, that's exactly what I was looking for!
/Leo
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.