Your Moodle version

Activities: Course element

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

Course elements need to be used with the Enhanced Multilang Filter in order to display properly.


Screenshot #0


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 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
    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 (, et lors de la validation, au lieu d'être redirigés vers, nous sommes redirigés vers, 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:


    I have to uninstall this plugin because it generates exception when I try to customize translations. See the detals at github:
  • Picture of Elizabeth Dalton
    Fri, May 9, 2014, 1:01 AM
    This plugin is still not working with 2.5, and we are going to migrate to 2.6 in early July. Is the plugin being maintained?
  • Picture of Valery Fremaux
    Fri, May 9, 2014, 6:38 AM
    the plugin is under evolution to 2.6 and is actually working nice in 2.5. Actually it is not a priority work at the moment, but will be published forth asap. Not you can get last versions and preliminary upgrades at

    Now just some points about elizabeth's request :

    - just saying its not working does not make things go ahead in any case. Our installed versions are working nice, and publishing that result of thousand hours working on it is a bonus.
    - although all the attention and heavy work we can spend on contributions, some environment will sometimes give the "bad case". Usually, contribution users are expected to :
    - positively report
    - solve by them selves the smaller points (trivial mistakes, that do not affect component architecture)
    - ask for support in other cases
  • Picture of Elizabeth Dalton
    Fri, May 9, 2014, 10:01 PM
    Valery, apologies for the incomplete report. I have the same problem that Rene reported earlier. Since there was no response to manisha's comment, and there is no 2.5 version listed, I thought the plugin hadn't been updated to 2.5 yet. I will do more troubleshooting when I am in the office on Monday. Thanks for the update.
  • Picture of Elizabeth Dalton
    Mon, May 12, 2014, 11:14 PM
    I am able to make the master from github work on Moodle 2.5, but icons for some of the elements do not display. The Unit Heading image is blank, rather than displaying the defaultunitheading.jpg image, and the "Work to do" clock image shows a broken image icon. Are these known problems?
  • Picture of lokesh nayyar
    Thu, Jul 17, 2014, 8:52 PM
    Hi Valery Fremaux,

    I was going through this plugin and this plugin is very good and is very helpful for everyone using moodle. I found a small issue ( Might be taken as an improvement smile) in this plugin. I actually installed this plugin on my local system and found that the images ( example: If I take an example of Important Label or tips and tricks) are not being displayed.

    After some tinkering I discovered that if the following changes are made in (customelabel->type->important->customelabel.css) for all the subtypes then this issue can be resolved and images can be visible.

    I just saw that the path of the background image "background-image: url("/mod/customlabel/type/localgoals/icon_goals.png");" was creating this issue.

    I just changed the path in order to view the image. In the path I just added the full moodle path background-image: url("/mymoodlename/mod/customlabel/type/localgoals/icon_goals.png");].

    After changing the path, the image was visible.

    Alternatively, we can simply give the name of the image without any path e.g,

    background-image: url("icon_goals.png");.

    If we follow either of the above then the image is visible properly. smile
    Please have a look into this issue. Hope this is correct and help as I am not a PHP developer.

  • Picture of Valery Fremaux
    Thu, Jul 17, 2014, 9:02 PM
    i guess this is because you are not using moodle on a primary path domain, but as a subpath , right ? i'm not actually so happy about the path resolution to images in customlabel, as image is mostly an integrator concern or styler concern and should not interfere with component core code. What you aslo can do to take full control over images is (what i do most often) adding a customlabel.css style sheet in styles, and a customlabel_icons directory in your theme, and map all image paths to that..., thus the original code of customlabel does not trouble your image choice and routing....
  • Picture of Elizabeth Dalton
    Thu, Nov 13, 2014, 10:27 PM
    I have found that if Moodle is installed in a subdirectory, many features do not work correctly, not just the images. I temporarily fixed this on my test server by the command (at the web root)

    sudo ln -s moodle/mod mod

    However, I think it would be better to fix this in the code. I suspect many of the places where $CFG->dirroot is used should be $CFG->wwwroot instead. This is defined in config.php to point to the moodle root directory. Is there a reason you used $CFG->dirroot instead?
  • Picture of Jean-Gabriel DEPINOY
    Fri, Jul 17, 2015, 11:49 PM
    Une version compatible avec Moodle 2.9 est-elle prévue?
  • Picture of Geoff Elliott
    Tue, Sep 22, 2015, 7:52 PM
    et Moodle 2.8?
1 2 3
Please login to post comments