
Hi there
Is it possible to create another block that works in the exact same way as the main menu block on the home page please?
Thank you
Z
I supposse the easiest way is to copy the block:
Copy the folder: site_main_menu (I think thats the block you mean)
Rename the folder: another_main_menu
Inside the folder you will find: block_main_menu.php rename it so block_another_main_menu.php
Then edit block_another_main_menu.php file,
Edit line 1: <?php //$Id: block_another_main_menu.php,v 1.25 2007/01/09 11:04:13 skodak Exp $
(You could change the date etc...)
Edit line 3: class block_another_main_menu extends block_list {
Then you just need to install the block: http://yourmoodle.com/admin
This should install your new (copy) block.
Alternative: http://moodle.org/mod/forum/discuss.php?d=92922
If you checkout Marnel Junior School , there is a tweak of the moodle main menu that I wrote (top left).
It's based on the slash-dot menu, with fold down menus.
Happy to send you code/instructions if it is helpful.
HA! Just checked the link to the moodle thread- that was my posting![]()
Thought it looked familiar...
Charles.
Is there a way of hiding a menu item until a user is logged on?

Thanks - I hadn't thought of that
Edit* - On second thoughts that wouldn't work for us as sometimes we need to have the ability to hide a menu item. I guess what I'm looking for is some way of having the ability to customise the menu for different user groups such as teacher and students.
Last edited by alan-d; 26th November 2008 at 11:37 AM. Reason: second thoughts
There are currently 1 users browsing this thread. (0 members and 1 guests)