Page MenuHomePhabricator

Patch to allow multiple quick bars
Closed, ResolvedPublic

Description

Author: wesleypeck

Description:
Changes to SkinTemplate.php, MonoBook.php, and DefaultSettings.php which make it
easy to create multiple quick bars.

For example, the original system has one quick bar which is customized through
the $wgNavigationLinks array. This variable is an array of arrays which defines
all of the links to place into the quick bar.
$wgNavigationLinks = array (

array( 'text'=>'mainpage', 'href'=>'mainpage' ),
...

);

The patch changes the $wgNagigationLinks array to support multiple quick bars as
follows:
$wgNavigationLinks = array (

array( 'text'=>'quickbar1', 'content'=> array(
    array( 'text'=>'mainpage', 'href'=>'mainpage' ),
    ....), ),
array('text'=>'quickbar2', 'content'=> array(
    array('text'=>'page1', 'href'=>'page1'),
    ...), ),
array('text'=>'quickbar3', 'content'=> array(
    array('text'=>'page2', 'href'=>'page2'),
    ...), ),
),

);

This example defines three quick bars named "quickbar1", "quickbar2", and
"quickbar3" which have the specified links which show up inside of them.

Tested On: Redhat Enterprise Linux WS 4
Patch Agaist: version 1.4rc1
Skin Tested: MonoBook


Version: 1.4.x
Severity: enhancement

Details

Reference
bz1764

Related Objects

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 8:17 PM
bzimport set Reference to bz1764.
bzimport added a subscriber: Unknown Object (MLST).

wesleypeck wrote:

Patch to support multiple quick bars

Attached:

avarab wrote:

I redesigned the whole sidebar system, see bug 419, I added this functionality
to it while I as add it ( but didn't use this patch).

Marking this as FIXED.