问题
I'm new to moodle. I need your suggestions to create plugin which will add a custom field on Add/edit courses page and will also store the input value in mdl_course
table.
回答1:
As of now Moodle does not allow you to add custom fields to a course from the web interface.
However there is a patch available for v1.9 in the Moodle Tracker(MDL-18319).
Please be aware that the patch is for Moodle-1.9 and applying it directly may corrupt your source code if you are using Moodle version > 1.9
回答2:
You can create new moodle course format. And add new fields in it. https://docs.moodle.org/dev/Course_formats
回答3:
You should be able to do this from settings:
http://docs.moodle.org/23/en/User_profile_fields
来源:https://stackoverflow.com/questions/11395631/add-a-custom-field-to-course-moodle