Hello,
I want to gain more control over the drawer, and right drop down menu. My current solution is a hack, and I'd appreciate some guidance to ensure it's done right. It all started with just trying to hide 'Dashboard' from the menus. However, I've also decided to remove calendar and private files (add_front_page_course_essentials).
I was hoping to use a mustache template, anytime the string Dashboard is found it skips the row. Or, even better a simple list I can define. Nevertheless, I failed with both of those attempts. Hence, the hacks below. Again, any help would be greatly appreciated.
Drawer hack - line 1226 - lib/navigationlib.php
- - $this->add_front_page_course_essentials($this->rootnodes['site'], $SITE); //Removes Calendar and Private files
- + $this->rootnodes['home']->showinflatnavigation = false; // Removes Dashboard
Right dropdown menu
- .dropdown-menu-right a.dropdown-item.menu-action:first-child{ display:none; /* Removes Dashboard */}
PS
Private files can be removed using user policies by defining the role of authenticated user (search for private uncheck everything).