Topic on Manual talk:Hooks/CategoryPageView

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

1
Sergezolotukhin (talkcontribs)

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?

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