Many thanks, Petr. Just the info I needed.
Maybe I should carefully read http://docs.moodle.org/en/Development:Theme_changes and other related doc before asking these questions.
Joseph
Many thanks, Petr. Just the info I needed.
Maybe I should carefully read http://docs.moodle.org/en/Development:Theme_changes and other related doc before asking these questions.
Joseph
Am I correct to believe that the modules' own styles.php stylesheets are no longer taken into account in Moodle 2.0 ?
For core modules, such as assignment, feedback, scorm, etc. which have or should have their own styles defined in the Moodle Themes stylesheets, such styles.php should probably be removed, as they are no longer needed.
For 3rd-party modules, however, those styles.php stylesheet can be very useful, almost indispensable. Please take them into account in Moodle 2.0 or advise on replacement strategy.
Joseph
Hi Mike and Tim,
In Moodle 2.0 dev (Build: 20100123) this throws an error:
Coding error detected, it must be fixed by a programmer: Invalid stylesheet parameter.
stylesheet address must not include site root!
was:
$currentcss = $CFG->wwwroot.'/mod/questionnaire/css/'.$this->survey->theme;
fixed to:
$currentcss = '/mod/questionnaire/css/'.$this->survey->theme;
$PAGE->requires->css($currentcss, true);
Joseph