Custom fields for activity modules

General plugins (Local) ::: local_modcustomfields
Maintained by Daniel Neis Araujo
This plugin adds Custom Fields to all activity modules.
Latest release:
354 sites
229 downloads
25 fans
Current versions available: 1

This plugin adds Custom Fields to all activity modules. Custom fields API was introduced in Moodle 3.7 and adds a standard way to support this feature in many contexts. With this plugin, the site admin can create fields at site level that will be displayed on the forms of all activity modules. Currently, there is only support to manage the fields and save their data in each activity module for every course (it uses the course module id). In future we can display theses fields wherever we want.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

Daniel Neis Araujo (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Сэтгэгдлийг харуулах
  • Daniel Neis Araujo
    Пү, 17 11-р сар 2022, 1:40 AM
    Hi, Clemente
    Unfortunately there is no such feature in this plugin.
    Pull requests are welcome инээмсэглэл
  • Вадим А
    Мя, 6 12-р сар 2022, 10:44 PM
    Great work! Thank you!
  • Andre Gallant
    Лх, 1 3-р сар 2023, 11:38 PM
    Hi, I see this plugin stops at Moodle 3.11. Will there be a version specific to Moodle 4, or might this existing version still work?
  • Daniel Neis Araujo
    Да, 6 3-р сар 2023, 10:37 PM
    The current version may work on 4.x.
    Please, let me know if you find any issues.
  • Xuan Dac
    Пү, 9 3-р сар 2023, 6:07 PM
    Hi.
    I successfully installed this plugin.
    How can i display custom field in api mod_quiz_get_quizzes_by_courses or core_course_get_contents
  • Marcel Suter
    Бя, 24 6-р сар 2023, 4:25 PM
    Hi, I really appreciate this plugin to add additional fields to activities.
    It seems that the setting "visible to" has no effect. I can set the field-value "everybody", but it never shows up when looking at the activity. Is there something I'm missing?
    I use Moodle 4.1 with the boost template.
    Regards, Marcel
  • Daniel Neis Araujo
    Лх, 28 6-р сар 2023, 2:35 AM
    Hello,
    The fields are not displayed anywhere.
    You should modify the code for the plugins where you need them to be displayed.
  • Andrew Hancox
    Мя, 4 7-р сар 2023, 8:42 PM
    I've just raised a merge request to add back-up and restore functionality:
    https://gitlab.com/andrewdchancox/moodle-local_modcustomfields/-/tree/backupandrestore
  • Daniel Neis Araujo
    Мя, 4 7-р сар 2023, 10:35 PM
    Thank you very much, Andrew!
    I've just released a new version with you changes.
    Best,
    Daniel
  • Santosh Jagtap
    Мя, 25 7-р сар 2023, 3:13 PM
    Hi, This plugin really helpful.
    It adds new filed at the end of settings tab as Other Fields
    Can we add new field under Activity Completion section.
  • Daniel Neis Araujo
    Бя, 5 8-р сар 2023, 4:37 AM
    The fields will appear under sections with the name you give when you create the fields's categories.
    It doesn't make sense to have them under Activity Completion section as they are not related to this.
    Best,
    Daniel
  • Santosh Jagtap
    Мя, 12 9-р сар 2023, 7:59 PM
    Can anyone here confirm whether database tables get deleted while un-installing this plugin?
  • Daniel Neis Araujo
    Ба, 22 9-р сар 2023, 1:55 AM
    No tables are deleted as the plugin don't have any tables.
  • Dhawal Mhatre
    Пү, 23 11-р сар 2023, 7:39 PM
    Hi,

    I have added the plugin & created some custom fields to the my courses. But how should I fetch those fields for core_course_get_contents? Is there any way of adding those field without making any changes to CORE code of moodle?
  • Daniel Neis Araujo
    Ба, 22 12-р сар 2023, 1:52 AM
    Hello, Dhawal
    You can use the handler from \local_modcustomfields\customfield\mod_handler::create(); to fetch the contents.
    Unfortunately, there are not many places you can display this information without modifying the core code.
    Best,
    Daniel
1 2
Please login to post comments