← Back to team overview

mahara-contributors team mailing list archive

[Bug 1396435] Re: Admin section navigation for webservices is clumsy

 

To test out the change for the tertiary menu option: (comment taken from
patch comment)

To add tertiary items to the top menu we set the menu item's path to
include a third item eg:

path = 'myportfolio/collection/add'

If we want the tertiary menu item to link to a subnav item we add the
'parent' option to the menu item. It needs to match the 'path' value of
the subnav menu item you want it to be the child of. This allows the
item to be highlighted on page load after it (or it's parent) has been
selected eg:

parent = 'myportfolio/collection

To test - either check out https://reviews.mahara.org/#/c/4052/, which
has this tertiary menu in play for the webservices stuff under admin ->
extensions

or checkout https://reviews.mahara.org/#/c/4051/ and edit the lib/web.php and add some tertiary level items to a *_nav() menu (not rightnav one though)
eg: mahara_standard_nav()

add after the myportfolio/collection array, this:

'myportfolio/collection/list' => array(
'path' => 'myportfolio/collection/list',
'parent' => 'myportfolio/collection',
'url' => 'collection/index.php',
'title' => get_string('Collections', 'collection'),
'weight' => 10,
),
'myportfolio/collection/add' => array(
'path' => 'myportfolio/collection/add',
'url' => 'collection/index.php',
'title' => 'Add collection',
'weight' => 20,
),

This will add two tertiary items to the nav menu

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1396435

Title:
  Admin section navigation for webservices is clumsy

Status in Mahara ePortfolio:
  In Progress

Bug description:
  Currently to even find the webservices submenu one needs to got to
  Extensions and click on the Auth webservices configuration link.

  Then suddenly a bunch of new submenu items appear and these pages look
  to live in three different areas of the admin section menu.

  What is needed is to work out where to place the webservices group
  with the admin menu and have all the apages be children of the
  webservices group.

  
  Marking this high as it's hard to use/find things currently

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1396435/+subscriptions


References