How to add extra fields to a course

How to add extra fields to a course

by Rajesh Pabbu -
Number of replies: 4

Hi,

I am creating courses using SOAP functionality, using which I can send only pre-defined parameters to soap call. But I want to add extra fields to a course like place,deadline. How to add extra fields to a category and how is possible using SOAP call. Please help.

Thanks
Rajesh Pabbu

Average of ratings: -
In reply to Rajesh Pabbu

Re: How to add extra fields to a course

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

Dear Rajesh,

Course formats only configure the view of the existing data.  SOAP technology is a web service, so I would recommend posting your question in the 'Web Services' forum for a more qualified answer.

Cheers,

Gareth

In reply to Gareth J Barnard

Re: How to add extra fields to a course

by A. T. Wyatt -

This discussion has been moved as suggested by Gareth!

atw

In reply to Rajesh Pabbu

Re: How to add extra fields to a course

by silvia bastos -

Dear Rajesh,

I think your problem has two parts:

1st one: Modify the "course" block to add the new fields, this include to modify the database (table mld_course) and the graphic part.

2nd one: Modify the SOAP call (web service) to add the new parameters at /course/externallib.php methods:

create_courses_parametes: by adding the new fields

create_courses: I think Isn't necessary to modify this method, but you must review it

I aren't a moodle expert, but I think this is a hard task because this affect a lot of other modules.

Good Luck, Silvia.

In reply to silvia bastos

Re: How to add extra fields to a course

by Rajesh Pabbu -

Dear Silvia,

Thanks for your replay. The soulution given by you is correct. Thanks alot.

 

Thanks,

Rajesh