Forums | Mahara Community

Developers /
Main Nav Question


anonymous profile picture
Account deleted
Posts: 34

01 September 2009, 15:34

Where can the main navigation items be found that aren't already in the mahara_standard_nav() function?  EX. 'Profile'

I've looked all through web.php, where the navigation arrays are declared, and I can't find where the profile option is declared.  Any help would be great!!
anonymous profile picture
Account deleted
Posts: 34

01 September 2009, 16:06

I was able to find where the Profile menu item is declared 'artefact/internal/lib.php' Line 96.  So to answer my own question, I believe that some menu items can be found in corresponding artefact lib files.?.
anonymous profile picture
Account deleted
Posts: 808

01 September 2009, 16:42

Yes, some menu items are defined by artefact plugins in the menu_items() function.  It's done that way so that you can write new artefact plugins and add to the menu without modifying any core code.
anonymous profile picture
Account deleted
Posts: 1643

01 September 2009, 16:47

Ahem.. snap!
anonymous profile picture
Account deleted
Posts: 1643

01 September 2009, 16:46

Correct. The PluginArtefact class (see artefact/lib.php) exports a static method, menu_items(). Each artefact plugin can implement this method to add menu items, like you found in artefact/file/lib.php Smile
5 results