Moodle 2.0 the Dock

Moodle 2.0 the Dock

by Albert Ramsbottom -
Number of replies: 4
Hi

I have just been through the tutorial to create themes for Moodle 2.0 and there is somthing im not quite sure about.

I have completed this tutorial and I have a basic theme but it doesnt have the Dock button in the top right of the blocks.

I have been to the theme settings page and seen the setting "allow blocks to use the dock" and have set this "yes"

Under this setting it states that "If enabled and supported by the selected theme users can choose to move blocks to a special dock."

I assume that this needs to be enabled in my layout.php file

But how

Cheers
Average of ratings: -
In reply to Albert Ramsbottom

Re: Moodle 2.0 the Dock

by Patrick Malley -
You need the following in your theme's config.php file:

$THEME->enable_dock = true;

http://docs.moodle.org/en/Development:Themes_2.0#Theme_options_as_of_April_28th.2C_2010
Average of ratings: Useful (1)
In reply to Patrick Malley

Re: Moodle 2.0 the Dock

by Albert Ramsbottom -
Thanks Patrick

Just being thick as usual

smile
In reply to Albert Ramsbottom

Re: Moodle 2.0 the Dock

by Albert Ramsbottom -
Is there a complete list of variables that can go in the config file. I have had a look through the documentation and in the other themes and they all seem to have different configs

cheers
In reply to Albert Ramsbottom

Re: Moodle 2.0 the Dock

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Probably the only definitive list is in the code. You need to look at the theme_config class in lib/outputlib.php ($THEME is an instance of this class). And, in particular, you need to look at the public fields of the class.

These should all have PHP doc comments, which means that a nice compiled list of the fields should be visible at http://phpdocs.moodle.org/HEAD/core/lib/theme_config.html#sec-vars, however the documentation is currently being re-build (see the notice http://phpdocs.moodle.org/), and so I can't verify that URL right now.