Forums | Mahara Community
Support
/
Editing Main Menu
02 May 2013, 2:45
Hi,
I'm looking to add a menu item to the main Mahara menu, so that it contains:
Dashboard
Content
Portfolio
Groups
VLE
where the VLE link will take the pupils back to our VLE, as they have to go via the VLE (Moodle) to login to Mahara.
I can't seem to find anywhere to do it, how would I go about this?
Many thanks,
Ollie
02 May 2013, 7:53
Hello Ollie,
We introduced the possibility to edit custom site pages from the admin interface once you created the link. Please see https://bugs.launchpad.net/mahara/+bug/999464 for more info and a link to the commit to check the code documentation.
Cheers
Kristina
02 May 2013, 19:28
Thanks Kristina,
It's creating the link I was struggling with! Is it in the admin interface or does it have to be done in the code?
Thanks again,
Ollie
02 May 2013, 19:44
Hi Ollie,
I don't know if this is the most uptodate way but we use local_main_nav_update($menu) which is placed in local/lib.php
function local_main_nav_update(&$menu){
$menu['dest1'] = array( 'path' => 'external', 'url' => 'http://example.org/dest1', 'title' => 'Destination1', 'weight' => 80, 'accesskey' => 's', );
$menu['dest2'] = array( 'path' => 'external', 'url' => 'http://example.org/dest2', 'title' => 'Destination2', 'weight' => 90, 'accesskey' => 't', );
}
If I find the original documentation where I found this I will post it later.
Hope this helps.
Kevin
2 posts by Account deleted were deleted
A post by Account deleted was deleted