Moodle plugins directory: Course element | Moodle.org
Course element
CHANGE : We have spent time enough to use Moodle Plugin
Maintenance API to support automated plugin update chain from our
internal development workflow.
The course elements provide pre-shaped pedagogic bricks that can be used as ressources in a course. They behave like labels and are rendered in the course sequence (not like resources in separate content).
Course elements provide high semantic level objects that are commonly used on written learning content, such as "Important, local goals, reminder, example, work description, soluce elements, tips and tricks, see also"...
Contact points elements can clearly mark a location in a course where teacher ans learners should meet some way (face to face, phone call, online synchronous session, mail, other...)
Other course elements provide a pre-styled constant way of rendering course headings, section and sequences headings.
Course elements complete the logic of a flexipage format (or any multi-paged format) in order to improve authors productivity, and content homogeneity, by applying the samel HTML template each time an element is rendered.
Course elements come with a default icon set and layout templates. An overriding strategy is being developped and will be soon documented to let each administrator and integrator freely adapt output HTML and aspect
Course elements need to be used with the Enhanced Multilang Filter in order to display properly in multi language situations.
this plugin is supported by MyLearningFactory distributor's as ActiveProLearn SAS (Montpellier - France)
Your vote of support would be good, cheers.
.
It als tells me that the used code to write to an array is outdated
Where do I find it to add to the courses?
It's in "resource". In French it's named "Element de cours". So it should be something like "Course Element" in English.
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()"
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()
$customlabel->fallbacktype = ''.@$instance->fallbacktype;
If not you are not using the last fixed version... you should update the code...
Cheers
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 au lieu de pour notre configuration.
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.
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...
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,