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?

Thanks,

Kamatchi.

Robert Lyon's profile picture
Posts: 511

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', '');

to

define('MENUITEM', 'home');

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

Cheers

Robert

Kristina Hoeppner's profile picture
Posts: 3864

19 January 2015, 7:33 PM

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

 

anonymous profile picture
Deleted user
Posts: 9

19 January 2015, 9:55 PM

Thanks :)

4 results