FN-GM Posted November 25, 2008 Posted November 25, 2008 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
danIT Posted November 25, 2008 Posted November 25, 2008 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.
danIT Posted November 25, 2008 Posted November 25, 2008 Alternative: http://moodle.org/mod/forum/discuss.php?d=92922
rocknrollstar Posted November 25, 2008 Posted November 25, 2008 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.
alan-d Posted November 26, 2008 Posted November 26, 2008 Is there a way of hiding a menu item until a user is logged on?
FN-GM Posted November 26, 2008 Author Posted November 26, 2008 Is there a way of hiding a menu item until a user is logged on? I hide the whole menu. For individual menu item you could hide the item then allow students to view hidden items. As for the others, thanks chaps z
alan-d Posted November 26, 2008 Posted November 26, 2008 (edited) I hide the whole menu. For individual menu item you could hide the item then allow students to view hidden items. As for the others, thanks chaps z 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. Edited November 26, 2008 by alan-d second thoughts
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now