General developer forum

How to get rid of action menus for activities in Boost

 
Picture of stefan weber
How to get rid of action menus for activities in Boost
Plugin developers

Im posted this on the Themes forum, however I'm getting rather desperate so I'm gonna try here as well smile


I have raised the issue of action menus on this forum before, and made a tracker item to request improvements in Moodle core:

https://tracker.moodle.org/browse/MDL-60668


That being said, bringing back action icons in Moodle 3.4+ is rather simple:


  1. edit /course/renderer.php
  2. insert this line at the end of public function course_section_cm_edit_actions, just before return $this->render($menu):
    unset($menu->attributes['data-enhance']);



Sadly, this only works when not using Boost.


So can anyone with more insight in how Boost works please point me towards the necessary changes in its core files to get back our beloved action icons?

The code for building the course settings action menu and others is in /theme/boost/classes/output/core_renderer.php, but I can't even find the files responsible for building the activity's action menus. 



 
Average of ratings: -
Picture of stefan weber
Re: How to get rid of action menus for activities in Boost
 
Average of ratings: -