meza icon indicating copy to clipboard operation
meza copied to clipboard

Create method to do global site notice

Open jamesmontalvo3 opened this issue 7 years ago • 1 comments

Need to easily put banners at the top of all wikis, and optionally at the top of select wikis without editing the [[MediaWiki:Sitenotice]] page.

jamesmontalvo3 avatar Jul 27 '17 18:07 jamesmontalvo3

This is very easy to add as a hook like:

      public static function onSiteNoticeAfter( &$siteNotice, $skin ) {

        $systemNotice = file_get_contents( '/opt/system-banner.mediawiki' );
        if ( $systemNotice ) {
          $siteNotice = $systemNotice . '<div id="localSiteNotice">' . $siteNotice . '</div>';
        }

      }

To make this better for a system-wide banner:

  • single shared database table for meza?
  • make banners have option for auto styling
  • Special:MezaAdmin (?) allows editing messages (amongst other things)
  • One message for during deploys.
  • Allow setting system-wide read-only from this (with associated message)
  • only access special page from primary wiki?

jamesmontalvo3 avatar Dec 10 '18 23:12 jamesmontalvo3