Last modified: 2010-05-15 15:33:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T3764, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1764 - Patch to allow multiple quick bars
Patch to allow multiple quick bars
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.4.x
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on: 419
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-27 03:18 UTC by Wesley Peck
Modified: 2010-05-15 15:33 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patch to support multiple quick bars (4.47 KB, patch)
2005-03-27 03:18 UTC, Wesley Peck
Details

Description Wesley Peck 2005-03-27 03:18:16 UTC
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
Comment 1 Wesley Peck 2005-03-27 03:18:58 UTC
Created attachment 393 [details]
Patch to support multiple quick bars
Comment 2 Ævar Arnfjörð Bjarmason 2005-05-24 20:08:37 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links