Custom fields for activity modules

Local plugins ::: local_modcustomfields
Maintained by Daniel Neis Araujo
This plugin adds Custom Fields to all activity modules.
Latest release:
518 sites
100 downloads
27 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

コメントを表示する
  • Andrew Hancox
    2023年 07月 4日(火) 20:42
    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
    2023年 07月 4日(火) 22:35
    Thank you very much, Andrew!
    I've just released a new version with you changes.
    Best,
    Daniel
  • Santosh Jagtap
    2023年 07月 25日(火) 15:13
    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
    2023年 08月 5日(土) 04:37
    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
    2023年 09月 12日(火) 19:59
    Can anyone here confirm whether database tables get deleted while un-installing this plugin?
  • Daniel Neis Araujo
    2023年 09月 22日(金) 01:55
    No tables are deleted as the plugin don't have any tables.
  • Dhawal Mhatre
    2023年 11月 23日(木) 19:39
    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
    2023年 12月 22日(金) 01:52
    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
  • CRISTIAN DAVID VARGAS BERMUDEZ
    2024年 05月 6日(月) 23:41
    Hello Daniel,
    I am trying to use the plugin in Moodle 3.10, but when I select the type of field, it shows me an error. The error is 'Section error!'.
    I installed the plugin on two different Moodles and it showed me the same error. Can you help me with this, please?
  • Daniel Neis Araujo
    2024年 05月 7日(火) 00:11
    Hello, Cristian
    Moodle 3.10 is too old, maybe the plugin is not really compatible anymore.
    Please, update to 4.1, 4.2 or later and try again.
    Best,
    Daniel
  • Juan Carlos Galdos
    2024年 06月 20日(木) 16:45
    Congratulations with this amazing plugin. It should be great to make some field categories visible also for students, like the General category on the activities.
  • Laurent Dairaine
    2024年 10月 19日(土) 21:27
    Hi Daniel. Thanks for this plugin. Is there any way to get and display the defined fields in GENERICO ?
  • Martin Mastny
    2024年 10月 21日(月) 20:05
    Hi Daniel, great and useful plugin. Thank you. Do you think that it would be possible (hypothetically) to edit the plugin, so that certain fields would appear at certain modules, or even better, certain field categories would appear at certain modules and not others?
  • VietCuong Nguyen
    2025年 04月 2日(水) 12:45
    Hi Daniel and everyone. I want add custom field name "Training LOE" with type number, but i see only date and text type. Can I custom the field to number?
  • Daniel Neis Araujo
    2025年 04月 25日(金) 00:51
    Hello,
    You can install https://moodle.org/plugins/customfield_textregex and use a regular expression to allow only numbers to be entered.
1 2
Please login to post comments