Forums | Mahara Community

Developers /
add menu under dashboard is not working

anonymous profile picture
Deleted user
Posts: 9

14 January 2015, 12:18 AM

Hi All,

          I am adding an artefact plugin under dashboard menu like (content/files). 

I have wrote code as define('MENUITEM', "home/artefactname"); in index.php and 

array('path' => "home/artefactname", 'url' => 'artefact/artefactname/','title' => get_string('artefactname', 'artefact.artefactname'), 'weight' => 60,), as on lib.php.

 But it is not coming under dashboard (dashboard/artefactname). what i have to do to achieve this?



Robert Lyon's profile picture
Posts: 516

14 January 2015, 7:18 AM

Hi Kamala

By the sounds of things you will need to make the additional changes:

1) in htdocs/lib/web.php in the mahara_standard_nav() function in the 'home' array change path from '' to 'home' and then in htdocs/index.php change the

define('MENUITEM', '');


define('MENUITEM', 'home');

and this should give you the submenu link on the dashboard page



Kristina Hoeppner's profile picture
Posts: 3866

19 January 2015, 7:33 PM

Hello Kamala,

There is now also a patch in review to offer the submenu functionality within Mahara:

Please feel free to test it and provide us with your feedback.




anonymous profile picture
Deleted user
Posts: 9

19 January 2015, 9:55 PM

Thanks :)

4 results