Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/catalyst/moodle-local_switchrolebanner
Moodle plugin that displays a banner in courses to notify users with site roles when they are viewing a course they have roles in and allows them to quickly switch roles.
https://github.com/catalyst/moodle-local_switchrolebanner
Last synced: 3 days ago
JSON representation
Moodle plugin that displays a banner in courses to notify users with site roles when they are viewing a course they have roles in and allows them to quickly switch roles.
- Host: GitHub
- URL: https://github.com/catalyst/moodle-local_switchrolebanner
- Owner: catalyst
- Created: 2023-10-11T00:09:07.000Z (about 1 year ago)
- Default Branch: MOODLE_39_STABLE
- Last Pushed: 2024-02-27T23:43:58.000Z (9 months ago)
- Last Synced: 2024-02-28T05:23:18.699Z (9 months ago)
- Language: PHP
- Size: 48.8 KB
- Stars: 1
- Watchers: 15
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Moodle Switch role banner
===================[![Codechecker CI](https://github.com/catalyst/moodle-local_switchrolebanner/actions/workflows/ci.yml/badge.svg?branch=MOODLE_39_STABLE&label=ci)](https://github.com/catalyst/moodle-local_switchrolebanner/actions/workflows/ci.yml)
Information
-----------This Moodle plugin displays a banner above course pages to users who have site roles that allow them to view courses and have roles in that course or can self enrol.
### Types of banners and their conditions:
- When the user has no roles but can self enrol in the course:
- The banner will notify the user that they can self enrol and will provide a self enrol button that takes to the /enrol/index.php page for that course.
- When the user has roles in the course and is viewing the course with their regular role:
- The banner will notify the user that their are viewing this course with their site/course category role and can switch to view as one of their enrolled roles. This will also provide quick buttons to switch to the role(s) they have in the course (this also takes into consideration the roles they are permitted to switch to).
- When the user is switched to a role that they have in the course:
- The banner will notify the user that are viewing the course with that role and that they can switch back to their regular role. A quick button to switch back to their regular role will be provided.### Extra information:
- At any time the user can click on the "Don't show this again for this session" checkbox to hide the banner for the course for the remainder of their session.
- This plugin remembers the last role the user switched to in each course (only applies to where banners would show) and will automatically switch them to that role on their next session.Branches
-----------| Moodle version | Branch | PHP |
|-------------------------|-------------------------------------------------------------------------------------------------------|------|
| Moodle 4.2 + | [MOODLE_402_STABLE](https://github.com/catalyst/moodle-local_switchrolebanner/tree/MOODLE_402_STABLE) | 8.0+ |
| Moodle 3.9 - Moodle 4.1 | [MOODLE_39_STABLE](https://github.com/catalyst/moodle-local_switchrolebanner/tree/MOODLE_39_STABLE) | 7.4+ |