Add a custom field to course Moodle

末鹿安然 提交于 2019-12-12 11:03:51

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!