Your Moodle version

Activities: Course element

mod_customlabel
Maintained by Picture of Valery Fremaux 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.

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

Screenshots

Screenshot

Contributors

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

Comments RSS

Show comments
  • Picture of Steven Parker
    Wed, Mar 27, 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.






  • Picture of Ger Tielemans
    Sat, Mar 30, 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
  • Picture of Valery Fremaux
    Wed, Apr 10, 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
  • Picture of rene diaz
    Sun, May 26, 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?
  • Picture of Alain Bolli
    Sun, May 26, 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.
  • Picture of Valery Fremaux
    Sun, May 26, 2013, 8:54 PM
    Actually !
  • Picture of rene diaz
    Mon, May 27, 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()"

  • Picture of rene diaz
    Mon, May 27, 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()
  • Picture of Valery Fremaux
    Mon, May 27, 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
  • Picture of rene diaz
    Sat, Jun 1, 2013, 10:37 AM
    what do you mean by i should "update the code"?
  • Picture of Valery Fremaux
    Sat, Jun 1, 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, Jun 11, 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.
  • Picture of Valery Fremaux
    Tue, Jun 11, 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...
  • Picture of manisha dayal
    Tue, Jul 30, 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,
  • Picture of Radu Dumbrăveanu
    Mon, Sep 9, 2013, 10:08 PM
    Hi, you have repeating keys in the language file:

    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
1 2
Please login to post comments