Hide dock in some courses

Hide dock in some courses

by Stefan Bäumer -
Number of replies: 4

Hello,

some of our courses are simple inline frames pointing to external resources.

So no breadcrumb and no dock is needed.

The idea is to clone MORE-theme and make that clone to course-theme of that particular courses.

I already found the interesting tag for the dock manipulation:

<div id="dock" role="menubar" class="dock_left_vertical">

It has to be changed to this:

<div id="dock" role="menubar" style="display:none" class="dock_left_vertical">

I tried but failed.


Any ideas how to do that?

thx

Stefan

Average of ratings: -
In reply to Stefan Bäumer

Re: Hide dock in some courses

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Purge cache or turn on theme developer mode?

Bear in mind however that this will hide any blocks already in the dock as well, so you will also need to remove/hide the button on each block that sends it to the dock - or that button will become 'make me disappear' smile

In reply to Richard Oelmann

Re: Hide dock in some courses

by Stefan Bäumer -

Oh yeah. The cache was not empty.

This is my custom css-code so far:

body.has_dock div#dock { display: none; }

.breadcrumb-nav { display: none; } h1 { display: none; }

.empty-region-side-post.used-region-side-pre #block-region-side-pre.span4, .jsenabled.docked-region-side-post.used-region-side-pre #block-region-side-pre.span4 { display: none; width: 22.9281768%; }

It seems to work. Very nice. Very clean.

Stefan


In reply to Stefan Bäumer

Re: Hide dock in some courses

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

'$THEME->enable_dock = false;' is cleaner, generates less mark-up and thus less bandwidth and less for the client browser to do, plus the server can probably implement page caching to be faster there too.

In reply to Stefan Bäumer

Re: Hide dock in some courses

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

If you are using a specific clone / child theme for those courses, just disable docking with '$THEME->enable_dock = false;' in the theme config.php file.

Average of ratings: Useful (1)