Topic on Extension talk:PageNotice

Add <indicator>s in PageNotice

2
Summary by 212.7.145.198
2001:9E8:E5D2:7900:9DB4:A262:3907:A837 (talkcontribs)

I'm a teacher and encourage my students to add and edit content in my wiki. Now I'd like to add a template to every page which shows whether the last edit was performed by a teacher or a student. The template contains a box at the bottom of the page and an <indicator>, both of which should appear on every page. The box is visible, the <indicator> is not. What am I doing wrong?

2001:9E8:E5EB:7F00:4A60:22FF:52D2:F45 (talkcontribs)

I found a solution: replacing

$out->addHTML( '<div id="bottom-notice-ns">' . $nsfooter->parse() . '</div>' );

and similar occurrences in /includes/Hooks.php with

$out->addWikiTextAsContent( '<div id="bottom-notice-ns">' . $nsfooter->plain() . '</div>' );

worked for me. I'm going to test this thoroughly and eventually commit it in gerrit, if it doesn't break anything.

Reply to "Add <indicator>s in PageNotice"