Jump to content

Manual talk:Hooks/CategoryPageView

Add topic
From mediawiki.org

How to call Article::view() from onCategoryPageView?

[edit]

Hello. It's now about wiki, but please help me ;P

I just want to redifine category look so I have to write something like this:

public static function onCategoryPageView( &$page ) {

$out = $page->getContext()->getOutput();

// write custom html;

return false;

}

But there I have to call Artice::view() in order to make all routines for page title etc. Something like $page->getParent()->view();

Any ideas? Sergezolotukhin (talk) 15:48, 10 October 2016 (UTC)Reply