Last modified: 2014-09-26 17:32:13 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 T65459, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63459 - Allow configuration of the mobilefrontend menu
Allow configuration of the mobilefrontend menu
Status: NEW
Product: MobileFrontend
Classification: Unclassified
Feature requests (Other open bugs)
unspecified
All All
: Low enhancement
: ---
Assigned To: Nobody - You can work on this!
http://lists.wikimedia.org/pipermail/...
:
Depends on:
Blocks: 63419 65888
  Show dependency treegraph
 
Reported: 2014-04-03 04:35 UTC by Dan Jacobson
Modified: 2014-09-26 17:32 UTC (History)
10 users (show)

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


Attachments

Description Dan Jacobson 2014-04-03 04:35:06 UTC
Watchlist
Uploads
Settings
etc. might not be appropriate for some wikis' main menu, whilst
Special:SpecialPages
might on the other hand be much needed.

Currently one cannot customize the menu at all.

Please offer a way, preferably via LocalSettings.php, rather than a Mediawiki:Sidebar approach.
Comment 1 Bingle 2014-04-03 04:40:08 UTC
Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1896
Comment 3 Jon 2014-05-29 16:20:17 UTC
Note: this would be useful to disable nearby on Commons (see bug 65888)
Comment 4 Florian 2014-05-29 17:38:56 UTC
Hmm, the question is, what would you exactly do? Only hide elements, you don't need? (Random Page, Home etc.) or add elements too?
Comment 5 Jon 2014-05-29 18:04:57 UTC
Max what would you suggest?
I wonder if a hook on prepareDiscoveryTools and preparePersonalTools would suffice.

An alternative approach would be a series of global variables.
e.g.
$personalTools = array(
  array(
    title: Title
    icon: 'home',
    label: wfMessage( 'home' )
  )
)

I'd hold off any sort of patch until we work out how this would work.
Comment 6 Florian 2014-05-29 18:12:55 UTC
> I'd hold off any sort of patch until we work out how this would work.
Totally agree :)

> I wonder if a hook on prepareDiscoveryTools and preparePersonalTools would suffice.
I think no, which a hook, a normal user/wiki administrator/provider maybe can not do anything, so i promote the second:

> An alternative approach would be a series of global variables.
Maybe one global variable is enough? Maybe as a multidimensional array like:

$wgMFNavItems = array(
  'main' => array(
    'home' => array(
      'title' => 'Title'
      'icon' => 'home',
      'label' => wfMessage( 'home' )
    ),
    'random' => array(
      'title' => 'Title',
      'icon' => 'random',
      'label' => wfMessage( 'random' )
    )
  ),
  'user' => array(
    'home' => array(
      'title' => 'Watchlist'
      'icon' => 'watch',
      'label' => wfMessage( 'watchlist' )
    ),
    'random' => array(
      'title' => 'Settings',
      'icon' => 'settings',
      'label' => wfMessage( 'settings' )
    )
  )
)
?
Comment 7 Quim Gil 2014-06-02 17:56:52 UTC
(In reply to Florian from comment #4)
> Hmm, the question is, what would you exactly do? Only hide elements, you
> don't need? (Random Page, Home etc.) or add elements too?

Add elements too. The bottom line here is to keep some consistency between your modifications to desktop's MediaWiki:Sidebar and you mobile sidebar.
Comment 8 Florian 2014-07-07 17:10:16 UTC
> Max what would you suggest?
? :)
Comment 9 Florian 2014-08-18 20:46:10 UTC
Any new status?

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


Navigation
Links