Forums | Mahara Community
Developers
/
add menu under dashboard is not working
14 January 2015, 0:18
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?
Thanks,
Kamatchi.
14 January 2015, 7:18
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', '');
to
define('MENUITEM', 'home');
and this should give you the submenu link on the dashboard page
Cheers
Robert
19 January 2015, 19:33
Hello Kamala,
There is now also a patch in review to offer the submenu functionality within Mahara: https://reviews.mahara.org/4188
Please feel free to test it and provide us with your feedback.
Cheers
Kristina