Details
Description
on popular demand (of our teachers) over the last year...
we have disabled the plain old simple text resource
that was confusing teachers and now we all use only html resource
btw, it could be more readable if we called it "rich format layout" and that way
it will not scare off teachers that think it has something to do with HTML coding ![]()
to the patch...
i added a new parameter at the end of mod/resource/setting.php
$settings->add(new admin_setting_configcheckbox('resource_disabletexttype', get_string('disabletexttype', 'resource'),
get_string('configdisabletexttype', 'resource'), 1));
and translated it to the proper installed languages.
( example; lang/en_utf8/resource.php )
$string['disabletexttype'] = 'disable simple Text resource';
$string['configdisabletexttype'] = 'enableing this will show plain simple Text resource in the resource listbox (edit mode)';
change mod/resource/lib.php (function : resource_get_types() ) line 532~
from:
$standardresources = array('text','html','file','directory');
to:
if ($CFG->resource_disabletexttype == 1) {
// disable 'text' simple and un-used resource type (nadavkav)
$standardresources = array('html','file','directory');
} else {
$standardresources = array('text','html','file','directory');
}
hope you all like it and think it's awesome too
![]()
i have also added a parallel folder (mod/resource/type.disabled)
to the original (mod/resource/type) resources extra plugged in folder
into which i moved "text" and "ims" resource types (as requested by our teachers).
(novice teachers to the Moodle system where using those resources which got them confused )
maybe an enable/disable listbox inside the "resource setting page" could help choose
what is displayed to the teachers and what is not?