Hi all,
In our University all courses have an id code. No surprise there. I put this code in the short name and the idnumber fields of the Moodle course. When coming from a course on the University's intranet to its corresponding Moodle course I look for the course code in the shortname field and convert it into the Moodle id. Is there anyway that I can use th University's course ids to reference the Moodle courses? (I am guessing this is why the idnumber field has been added).
Thanks a lot,
Paolo
Yep, you can reference courses by shortname like this:
http://moodle.org/course/view.php?name=Using%20Moodle
And in 1.5 you'll be able to use the idnumber as well:
http://moodle.org/course/view.php?idnumber=USING001
http://moodle.org/course/view.php?name=Using%20Moodle
And in 1.5 you'll be able to use the idnumber as well:
http://moodle.org/course/view.php?idnumber=USING001
Hi, what happened to this? idnumber still seems to fail where name works. Any ideas?
Thanks, Paolo
Thanks, Paolo
In Moodle 1.5.2 line 16 of course/view.php should read:
if (empty($id) && empty($name) && empty($idnumber)) {
rather than:
if (empty($id) && empty($name)) {
Quite important me thinks...
Should I raise a bug report about this sort of issue?
Paolo
if (empty($id) && empty($name) && empty($idnumber)) {
rather than:
if (empty($id) && empty($name)) {
Quite important me thinks...
Should I raise a bug report about this sort of issue?
Paolo
You caught it Paolo, thanks!
It has been solved in 1.5. Will be available in next daily build.
Ciao
It has been solved in 1.5. Will be available in next daily build.
Ciao