On 12/09/2007, Thomas Dalton thomas.dalton@gmail.com wrote:
But wouldn't that require rewriting the code that calls CategoryPage to make it call the new class? If you're changing the core code like that, you may as well just add the code directly to CategoryPage.php and not worry about hooks.
There is a hook.
$wgHooks['CategoryPageView'][] = 'wfMyAlternativeCategoryPage';
Good point, that hook would work.
On the description page it says: Called before viewing a categorypage in CategoryPage::view
So that means I can just append my bit to the catpage that is passed in? or how do I control where my content shows up on the page?