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
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
$THEME->enable_dock = true;
http://docs.moodle.org/en/Development:Themes_2.0#Theme_options_as_of_April_28th.2C_2010
Thanks Patrick
Just being thick as usual
Just being thick as usual
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
cheers
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.
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.