Course element

Activities ::: mod_customlabel
Maintained by 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.
Latest release:
175 sites
284 downloads
41 fans
Current versions available: 18

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)

Screenshots

Screenshot #0

Contributors

Valery Fremaux (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Valery Fremaux
    Fri, 1 Mar 2013, 4:08 AM
    Hi colleages, i've just packed a Moodle 2.4 version as Release Candidate. Cheers
  • Steven Parker (sparkerED)
    Wed, 27 Mar 2013, 12:23 PM
    FYI I have put in a feature request to include the "Course elements" module (Custom label module) as part of core Moodle see: https://tracker.moodle.org/browse/MDL-38742

    Your vote of support would be good, cheers.






  • Ger Tielemans
    Sat, 30 Mar 2013, 7:33 PM
    I installed on a clean Moodle 243 / PHP 547 and was not able to add an item to a course (database write error)
    .
    It als tells me that the used code to write to an array is outdated
  • Valery Fremaux
    Wed, 10 Apr 2013, 5:31 AM
    Could you please give some line reference ? or type of element you where trying to add ? i tested the overal process with many elements, maybe not all of them.... sad
  • rene diaz
    Sun, 26 May 2013, 2:43 PM
    I have installed but when i go to Add an activity or resource it does not appear on the list (unless it is shown as another name)

    Where do I find it to add to the courses?
  • Alain Bolli
    Sun, 26 May 2013, 8:23 PM
    Hi rene,

    It's in "resource". In French it's named "Element de cours". So it should be something like "Course Element" in English.
  • Valery Fremaux
    Sun, 26 May 2013, 8:54 PM
    Actually !
  • rene diaz
    Mon, 27 May 2013, 10:13 AM
    thank you Alain and Valery.

    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 => '
    Remind !
    ',
    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()"

  • rene diaz
    Mon, 27 May 2013, 10:15 AM
    I get this error when i leave the "lble type" the same



    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 => '
    hello
    ',
    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()
  • Valery Fremaux
    Mon, 27 May 2013, 2:54 PM
    lines 121, 148 and 158 of lib.php should show this :

    $customlabel->fallbacktype = ''.@$instance->fallbacktype;

    If not you are not using the last fixed version... you should update the code...
    Cheers
  • rene diaz
    Sat, 1 June 2013, 10:37 AM
    what do you mean by i should "update the code"?
  • Valery Fremaux
    Sat, 1 June 2013, 3:40 PM
    2.4 and 2.3 packages have been carefully reviewed for uptodateness. You can reload them and deploy at the samel location than previous...
  • moi
    Tue, 11 June 2013, 7:47 PM
    Bonjour,
    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&section=1&sesskey=..., nous sommes redirigés vers notreserveur.fr/course/mod.php?id=5&section=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 minus.gif au lieu de minus.gif 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.
  • Valery Fremaux
    Tue, 11 June 2013, 8:16 PM
    Hi Anne-Sophie. Apologize for english speaking people, i will answer in French....

    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...
  • manisha dayal
    Tue, 30 July 2013, 4:35 PM
    Hi Valery,

    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… smile

    Best regards,
Please login to post comments