Automatic Course creation

Automatic Course creation

by Philip Templeton -
Number of replies: 2

Hello,

Im using moodle 2.5 and I am wondering how the mapping for the "New course category" field works under automatic course creation.  If I create a database with a column named "name" put in "name" in the field for "new course category" (web gui) does it map to  "name" column in the Moodle database?  Well, thats what I tried and if I run the enrol sync via command line with optional argv "-v" I get an error invalid category id?

What am I missing? I looked in the tracker and docs and couldnt find anything.  Can you help?

 Thanks!

 

Attachment course_create.png
Average of ratings: -
In reply to Philip Templeton

Re: Automatic Course creation

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

If it is looking for Category ID - that would be the number, not a name. 

In reply to Emma Richardson

Re: Automatic Course creation

by Philip Templeton -

Right, I took the column in my remote database "name" column and changed it to align to the category id.  It seems that this field in the web interface is a little misleading...

New Category Field Name can be interpreted as flexibility in choice, where it should be a little more concrete by saying Category ID or something to that effect.  

Thanks for your repsonse!