Adding Custom fields while Course Creation in Moodle

Adding Custom fields while Course Creation in Moodle

by Sarthak Singh -
Number of replies: 4

Hi,

My project is using Moodle version 2.8.5. We are trying to add a custom field while creating course in the moodle. But , there is no option available to do that. 

On the other hand, if we try to introduce a custom field while creating a new User inside Moodle, it is permissible.

So, my question is : If anybody knows any technique, to introduce a new custom field, while creating a new course, plz help.
And secondly, if this feature is available in another version of moodle, then plz tell that version number.????


Thanks in Advance !!!!

Average of ratings: -
In reply to Sarthak Singh

Re: Adding Custom fields while Course Creation in Moodle

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
In reply to Gareth J Barnard

Re: Adding Custom fields while Course Creation in Moodle

by Sarthak Singh -

Hi Gareth,

We appreciate your response. However our project requires that there should be a new feature , visible to the user, such that new custom fields are available to be created and filled.

The solution provided by you requires changes in moodle database. We can't do that. So please if you have any solution such that we could directly introduce an option of introducing custom fields while creating course only (i.e., on front-end), that would be quite appreciable.

We urgently require the answer.

In reply to Sarthak Singh

Re: Adding Custom fields while Course Creation in Moodle

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Do you mean any user, not just course creators / editing teachers?

And the solution provided only requires PHP changes, the database is taken care of by new records in existing tables.

And... Silly question, but how do you intend to implement persistence without the database?  Flat file?

In reply to Gareth J Barnard

Re: Adding Custom fields while Course Creation in Moodle

by Sarthak Singh -

Hi Gareth,

Actually the options provided in the "Course Format" are not sufficient enough, as per our requirements. So for PHP changes, right now, we are trying to apply a patch, provided earlier by a moodle user. This link is as follows:


 We will communicate to you about any further queries, regarding the same.
Thanks !!!