Turn off Changing Look in Collapsed Topics Format

Turn off Changing Look in Collapsed Topics Format

by Bryan Kersten -
Number of replies: 2

We've been using Collapsed Topics since converting to Moodle 2+ in January and really have had good success. However, the change for 2.3 introduced an element that we are not very keen on, the massive orange wrench icon dominating the top of the page, causing us to have to scroll down a lot more and making it harder to keep a consistent look and feel across courses. Is there anything we can do to remove that functionality? We don't want to have to switch to a different format but this new feature is not something we want to have. 

Average of ratings: -
In reply to Bryan Kersten

Re: Turn off Changing Look in Collapsed Topics Format

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Dear Bryan,

The spanner ('wrench') icon disappears when the course is not in editing mode.  If you wish to reduce it's size you can edit the inline css in 'format.php' for 'tc_logo_spanner.png'.  It was introduced to provide the functionality of easy customisation that a lot of users were asking for without having to edit code.  The defaults are maintained in the 'config.php' file in the format and the administrator can reset all CT courses to use them with the spanner icon.

In the Moodle 2.3 version if you wish to remove the functionality, edit 'renderer.php' and remove:

// Collapsed Topics settings.
echo $this->settings($course);

around lines 351/352.  Then the defaults will be used unless the spanner has been used previously to set course specific settings, in which case you need to edit the rows in 'format_topcoll_settings' in the database or put the spanner back temporarily and do a reset as administrator as mentioned above.

The spanner will disapear in Moodle 2.4 when planned custom course settings are added to core and I can move the code in that direction.

Regards,

Gareth

Developer of Collapsed Topics

In reply to Gareth J Barnard

Re: Turn off Changing Look in Collapsed Topics Format

by Bryan Kersten -

Gareth,

Thank you very much and thanks for the info on the upcoming changes in 2.4. I understand that it's a nice level of functionality to offer and I can see it being extremely popular in the right system. For us, we will remove that functionality as you mentioned to keep that consistent default.

Appreciate the work on this as it has been a great format for us.

Bryan