Custom fields for activity modules

Certified Partner Plugin
Maintained by Daniel Neis Araujo
This plugin adds Custom Fields to all activity modules.
Price option: Free

Supports Moodle 3.7-5.1 See all versions
Latest release: 2 years ago
Installations: 644
Downloads (last 90 days): 112

Frankenstyle name: local_modcustomfields
Local plugins

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Hello,
The fields are not displayed anywhere.
You should modify the code for the plugins where you need them to be displayed.
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
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
The current version may work on 4.x.
Please, let me know if you find any issues.
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?
Great work! Thank you!
Hi, Clemente
Unfortunately there is no such feature in this plugin.
Pull requests are welcome smile
Hi, is there a way to add the custom field only to a specific resource type?
In my case I need tho show a custom field selector only on page resource.
Thank you.
Oi, Cristyan
Os campos ficam na mdl_customfield_field e os dados ficam em mdl_customfield_data
Boa tarde Daniel, tudo bem? bom estou com uma duvida quando o plugin e configurado e o campo e preenchido, ele salva em qual tabela do banco de dados? Obrigado!
Handy plugin for me. It would be handy to document how to grab the field value programmatically. Here's a helper function I added for this:
function local_modcustomfields_get_field_value($cmid, $fieldname, $default = null) {
$handler = local_modcustomfields\customfield\mod_handler::create();
$datas = $handler->get_instance_data($cmid);
foreach ($datas as $data) {
if (empty($data->get_value())) {
continue;
}
if ($data->get_field()->get('shortname') === $fieldname) {
return $data->get_value();
}
}
return $default;
}
Hello,
could this plug in add new userfield to statistics?, User fields such as Nationality, Gender and Age.
Thanks a lot,
WWB
Approval issue created: CONTRIB-8282