Custom fields for activity modules
Certified Partner Plugin
Maintained by
Daniel Neis Araujo
This plugin adds Custom Fields to all activity modules.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
You can install https://moodle.org/plugins/customfield_textregex and use a regular expression to allow only numbers to be entered.
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
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?
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
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?
It doesn't make sense to have them under Activity Completion section as they are not related to this.
Best,
Daniel
It adds new filed at the end of settings tab as Other Fields
Can we add new field under Activity Completion section.
I've just released a new version with you changes.
Best,
Daniel
https://gitlab.com/andrewdchancox/moodle-local_modcustomfields/-/tree/backupandrestore