Forums | Mahara Community

Support /
Editing Main Menu


Oliver Webb's profile picture
Posts: 5

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

Kristina Hoeppner's profile picture
Posts: 4717

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

Oliver Webb's profile picture
Posts: 5

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

Kevin Rickis's profile picture
Posts: 67

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

Oliver Webb's profile picture
Posts: 5

03 May 2013, 0:50

That worked perfectly.

Many thanks,

Ollie

Kevin Rickis's profile picture
Posts: 67

03 May 2013, 1:19

Hi Ollie,

 

glad to help. :)

 

Kevin

2 posts by Account deleted were deleted

A post by Account deleted was deleted

9 results