Thread:Project:Support desk/Extension ArticlePageDataBefore

I have a PHP scripts which displays lists of employees on my MediaWiki. I also have a special page, where you can administrate which users are employees, that works very well. However when you make a backend change on the special page, the change isn't displayed on the wikipage, where it's inserted with a tag, until after you edit that page, and change nothing, and save it.

It can only be because I'm using the wrong hook. I'm trying to use this hook instead, but it doesn't seem to be working: Manual:Hooks/ArticlePageDataBefore

Right now I'm using this hook. Just changing the variable name doesn't work:

$wgHooks['ParserFirstCallInit'][] = 'wfEmployeesParserInit';

// Hook our callback function into the parser function wfEmployeesParserInit( Parser $parser ) { // When the parser sees the tag, it executes // the wfEmployeesRender function (see below) $parser->setHook( 'employees', 'wfEmployeesRender' ); // Always return true from this function. The return value does not denote // success or otherwise have meaning - it just must always be true. return true; }

// Execute function wfEmployeesRender( $input, array $args, Parser $parser, PPFrame $frame ) { ...