Thanks, it works!
=====================================
Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054
On Mar 6, 2007, at 8:10 AM, Rotem Liss wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jim Hu wrote:
IIRC, there were others besides me who were
interested in having
multiple namespaces that act like the category namespace. Playing
with my alternate Category page extension, I realized that I could
fake having multiple category namespaces by getting the title text
of the category page, analyzing it, and then replacing it with
$wgOut->setPageTitle( $titleText );
Where $titleText is the alternative h1 heading. I've also figured
out how to alter the subheadings and count messages. But I haven't
figured out how to set the text in the leftmost tab.
Here's an example of what I'm trying to do:
http://ecoliwiki.net/colipedia/index.php/Category:Complex:Flagellum
I'd like the tab that says Category to say Complex. Anyone know how
to do that?
Jim
=====================================
Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054
Something like this may work (I didn't test it):
$wgHooks['SkinTemplateTabs'][] = 'wfChangeCategoryTabText';
function wfChangeCategoryTabText( $skin, $content_actions ) {
if ( isset( $content_actions['nstab-category'] ) ) {
$content_actions['nstab-category']['text'] = 'something';
}
return true;
}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iD8DBQFF7WhDqahN/0dU8mcRArTaAKDD8gxw35Ey62RYoyBx4AOm66/v6QCePD6S
YABdbwRYN9UBTGaIRnSGbtU=
=/FND
-----END PGP SIGNATURE-----
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/wikitech-l