So if I simply want to do just what I did in 1.6 -- give an alternate name to the Student role in a specific course -- the system administrator needs to create a new role altogether system-wide, and then assign that as the default role for the course ? Even if it has exactly the same permissions as the Student or any other pre-existing role ?
Can someone enlighten me on this ? I hope I am mistaken.
Because, if that is so, that's a LOT of work, especially since there seems to be no way to even copy a role to be the basic of a new role, but when creating a new role you have to start from scratch and set something on the order of 100 settings, and that's a lot of potential confusion.
Don't get me wrong: roles and permissions is much welcomed and a big leap forward, but eliminating the flexibility of simply changing the label for a system roll ad hoc in a course is (or was) extremely valuable for non-classroom courses.
I have a dozen or more cognates for "Teacher" and "Student" in various social style courses, all with the default permissions.
I would very much like to be able to preserve this ability.
I believe that's how you're now intended to change the names of these roles on a site-wide basis.
What now appears to be harder is changing these legacy role names on a course by course basis. I think this requires new roles to be defined as clones of the legacy roles, with these new roles then used in assigning roles for courses that need them. Since there's currently no way to clone and then modify an existing role, this is a bit laborious. And I haven't yet done it to see if there are any "gotchas".
Yes, what is missing the ability to for a teacher to simply change the labels for the roles for a course.
In 1.6, in the database, these labels are columns in the mdl_course table, i.e.
"teacher, teachers, student, students" will hold whatever text values are set for them, and so are simply aliases for those two standard predefined system roles.
These columns and values still exist in 1.7 in the course table, but from my testing (er, fiddling around), it seems that even if you go into the database and change them, they won't show up anywhere in the course; the role names are used instead, which makes sense. (Except in the Participants block (clearly a bug), where only the legacy roles Teachers and Students appear.)
I understand why the developers would want to remove this in 1.7, since in a real sense, there is no knowing what the various system roles will be anymore, except the system wide "default role for users in a course" setting. So mapping the labels in a course to system roles is not a simple one-to-one deal like it used to be. (And from the way the role database tables look, this is a work in progress.)
However, in a typical course, there will still only be two or three roles in use. It would be VERY nice to restore the ability of teachers (and not just admins) in a course to simply relabel for themselves the few roles they do use in a course.
I'm glad to see I'm not the only one who can't find this option in the 1.7 version! I was going crazy looking through all the new options without being able to locate where to change it. The only option now as I see it is changing "yourwordfor" for instance student directly in moodle.php but this gives you the same word for each role throughout the entire site and not the option of giving every role a different label in each course... In my case the "teachers" are coordinators - if I change it in moodle.php I can have only one or the other - either teacher or coordinator...
It would be great to restore this option and let us assign our own word for students, teachers, etc for each course!
If each role was categorized as admin, teacher, or student role (regardless of actual range of capabilities), Moodle's code could use either the specific role name or the role category name as appropriate in a given circumstance.
This would specifically allow us having back generic labels for teachers and students in a course while keeping actual role names more matching their capabilities.
I also think that such a categorization could be used to delineate course-level and site-level roles more clearly -- it would essentially give us the functionality equivalent to former isadmin() and isteacher() except it would be now isadminrole() and isteacherrole().
"...I think this requires new roles to be defined as clones of the legacy roles, with these new roles then used in assigning roles for courses that need them. Since there's currently no way to clone and then modify an existing role, this is a bit laborious..."
That's the first thing I wanted to do was clone a role and make changes rather than printing out the entire list. I observed the following:
In, >Administration>> Users>> Permissions>> Define roles
Manage Roles tab, if you hover over the 'Edit' icon, the URL is:
where, roleid is Teacher.
(psuedo code): Duplicate the edit action in the manage.php and call it 'clone' action, get the highest roleid number and add one to it, copy all permissions to new roleid, change name to 'cloneof_Teacher', then go to http://yourdomain/admin/roles/manage.php?action=edit&roleid=new_role_id
I haven't jumped into manage.php yet, but I'm willing to give it a try. I'm running 1.7+. If anyone else has made any progress, please reply or send me a message.
I think this would afford the same level of functionality of the old Your Word for Teacher/Student. It would also prevent site maintainers from having to duplicate roles.
Another reason NOT to duplicate roles: if you decide to make a change to what students can do, you don't want to have to make it to several roles.
Well seen, well said, I vote for it !
I have just upgraded from 1.6 to 1.8 and am running into the same problems. I have various 'courses' on my moodle site.
One course has 'teachers' called 'trainers' and 'Students' called 'Teachers Assessors' (a course for teachers to learn stuff)
Another has 'teachers' called 'mentors' and 'students' called 'students'
Yet another has 'teacher' called 'chairperson' and 'students' called 'members'.
I have been going round in circles for the last day and a half comparing my 1.6 moodle with my 1.8 moodle trying to work out how the hell to do this in 1.8.
Please Please Please bring this option back to the course/admin/settings as it was before.