{{ :blocks:logo-apl.png?nolink |}} ===== MY Dashboard Page: Use Case 2 ===== ==== Introduction ==== **The request:** * Allow teachers on the my page (Dashboard) to use course templates to quickly deploy courses in given course categories. * Do not allow teachers to create or modify the proposed templates. **The answer:** Use a widget of the local_my component and play on roles and permissions. ==== 1/ MY page ==== Path: Site administration/Plugins/Local plugins/Enhanced My Moodle The administrator adds the name of the widget to call for teachers: my_templates On the MY page, the "my templates" widget appears ==== 2/ Roles ==== No user who must not have access to the templates has a role in the courses that serve as templates ==== 3/ Permissions ==== The course_creator role must be assigned on one (or several) course categories where the teacher can then deploy their courses based on the templates. {{ :local:my:attrib-role-sur-cat-cours.png?nolink&600 |}} {{ :local:my:attrib-role-sur-cat-cours-2.png?nolink&600 |}} :!: Note: on image 2 the course_creator role has been renamed course manager ==== Rendering for a teacher ==== 1/ The teacher clicks on "Create from a template" {{ :local:my:cours_modele.png?nolink&600 |}} 2/ They can create a course based on the templates available only in the category where they are course_creator :!: If they tick the "give me editing rights" box, they will have the teacher role in the created course. {{ :local:my:cours_modele2.png?nolink&600 |}} ---- [[local:my:casestory|See use case 1]] - [[local:my:casestory2|See use case 3]] - [[local:my:casestory3|See use case 4]] - [[local:my:casestory4|See use case 5]] - [[local:my:casestory5|See use case 6]] - [[local:my:casestory6|See use case 7]] - -[[local:my:casestory7|See use case 8]] - [[local:my:userguide|Back to the user guide]] - [[:Local:My|Back to the component index]] - [[:plugins|Back to the plugin index]]