Course element
Maintained by
Plugins ActiveProLearn, Valery FREMAUX
Course elements is a content strategy to improve course writing quality and editorial stability by providing preshaped pedagogic elements. The integrator or administrator (through custom CSS rules) can take over the styling of the elements. Some elements can have local dynamic behaviour, or have an internal logic strategy based on other data of Moodle.
This plugin is supported by ActiveProLearn SAS.
Comments
Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.
lang/en/customlabeltype_wotktodo.php
...
$string['workeffort']=
...
$string['WORKEFFORT']=
I have to uninstall this plugin because it generates exception when I try to customize translations. See the detals at github: https://github.com/vfremaux/moodle-mod_customlabel/issues/1
The Custom label module is a great help and it enhances the course look also.
I would like to use Custom label module for Moodle 2.5. But getting some issues with text and icons.
When can I expect Custom label module for Moodle 2.5?
Though I am not a php programmer, still I know some CSS. Tell me if I could be a help ...
Looking forward to hear from you…
Best regards,
je n'ai effectivement jamais testé ce type d'installation. Faudra que je revoie mes générations d'URL locales, qui normalement devraient se baser sur $CFG->wwwroot... la deuxième erreur est du même tonneau.... LA version 2.4 devrait en principe tourner en 2.5, vu que les changements restent spécifiques à des points fonctionnels précis... je le mettrai dans le plan de test 2.5 ASAP...
Nous avons installé "cours élément" dans notre Moodle v2.4, et l'installation a correctement fonctionné. Cependant quelques remarques : quand on ajoute un élément de cours, après l'étape du choix du type d'élément à ajouter (prise de contact, etc.), nous sommes redirigés à la racine du serveur; alors que notre Moodle est accessible dans un sous-répertoire (notreserveur.fr/moodle), et lors de la validation, au lieu d'être redirigés vers notreserveur.fr/moodle/course/mod.php?id=5§ion=1&sesskey=..., nous sommes redirigés vers notreserveur.fr/course/mod.php?id=5§ion=1&sesskey=..., ce qui nous amène à une page d'erreur.
L'erreur suivante a peut-être la même origine : une fois qu'on a modifié l'URL en ajoutant notre sous-répertoire, on peut ajouter les éléments. Mais sur la page de cours, les icônes ne s'affichent pas (voici le code source
Dernière petite question : une version de custom_label est-elle prévue pour la 2.5 ou cette version est-elle utilisable dans Moodle 2.5 (que nous envisageons de mettre en place) ?
Merci d'avance pour votre réponse.
$customlabel->fallbacktype = ''.@$instance->fallbacktype;
If not you are not using the last fixed version... you should update the code...
Cheers
Error writing to database
More information about this error
Debug info: Column 'fallbacktype' cannot be null
INSERT INTO mdl_customlabel (labelclass,title,course,name,intro,introformat,processedcontent,fallbacktype,content,timemodified) VALUES(?,?,?,?,?,?,?,?,?,?)
[array (
0 => 'text',
1 => 'text_1',
2 => '191',
3 => 'customlabel',
4 => '',
5 => 0,
6 => '
7 => NULL,
8 => 'eyJ0ZXh0Y29udGVudCI6ImhlbGxvIn0=',
9 => 1369621119,
)]
Error code: dmlwriteexception
Stack trace:
line 429 of /lib/dml/moodle_database.php: dml_write_exception thrown
line 1107 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1149 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
line 127 of /mod/customlabel/lib.php: call to mysqli_native_moodle_database->insert_record()
line 449 of /course/modedit.php: call to customlabel_add_instance()
I tryied it and when i go to change "Label type" to "Tip and tricks" i get a pop up message "You are about to thange the internal data structure of this element. Old content cannot be maintained. Continue?"
I click ok then it ask to "leave page"
i click ok
then it takes me to my main websites 404 error page.
when i clicked "stay on page and continue to fill out the page data and click "save and display"
i get the following error
"
Error writing to database
More information about this error
Debug info: Column 'fallbacktype' cannot be null
INSERT INTO mdl_customlabel (labelclass,title,course,name,intro,introformat,processedcontent,fallbacktype,content,timemodified) VALUES(?,?,?,?,?,?,?,?,?,?)
[array (
0 => 'keypoints',
1 => 'Key Points',
2 => '191',
3 => 'customlabel',
4 => '',
5 => 0,
6 => '
7 => NULL,
8 => 'eyJrZXlwb2ludG51bSI6bnVsbCwia2V5cG9pbnRpdGVtMCI6bnVsbCwia2V5cG9pbnRpdGVtMSI6bnVsbCwia2V5cG9pbnRpdGVtMiI6bnVsbH0=',
9 => 1369620868,
)]
Error code: dmlwriteexception
Stack trace:
line 429 of /lib/dml/moodle_database.php: dml_write_exception thrown
line 1107 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1149 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
line 127 of /mod/customlabel/lib.php: call to mysqli_native_moodle_database->insert_record()
line 449 of /course/modedit.php: call to customlabel_add_instance()"
It's in "resource". In French it's named "Element de cours". So it should be something like "Course Element" in English.
Where do I find it to add to the courses?
.
It als tells me that the used code to write to an array is outdated
Your vote of support would be good, cheers.