Comments (2)
Hi Chris,
thanks for your feedback and sorry for the late reply.
I completely understand your use case and I find it quite interesting. We encounter the same issues when our lecture term starts.
Implementing your suggestion would lead us another step away from the way block_course_overview from Moodle core handles course lists, but that's life :)
Now, how can we implement that?
Currently, the block uses the Moodle core function enrol_get_my_courses() to fetch the list of courses I am enrolled in. This function already drops courses if they are not visible and if I don't have the moodle/course:viewhiddencourses capability in the course context (like, especially, a teacher has). Thus, the block never gets to see the inaccessible courses you would like to add to the course list.
We could propose to add a new parameter to enrol_get_my_courses() in Moodle core to let us fetch courses which are invisible and inaccessible, but I don't know if that proposal would be successful.
As a quick solution (which could be done in parallel to proposing the solution in Moodle core), we could just copy enrol_get_my_courses() over to the block's lib, enhance it there and call our own fork of the function.
Afterwards, we would have to visually distinguish in the block's course list between accessible and inaccessible courses.
And finally, we would have to decide if we just link to an inaccessible course as we do to an accessible course and rely on the error message Moodle core presents to the user (something like "This course is currently not available") or if we don't link to an inaccessible course and present our own notification about the inaccessibility of the course within the block's course list.
One more thing: If we enhance the course list this way, we can also add a notification for the teachers to an invisible course in the course list telling them that they currently can see the course but students can't.
Now here's the question:
Do you have time and development experience to implement this feature and submit a pull request?
Thanks,
Alex
from moodle-block_course_overview_campus.
Hi,
this issue has been stale for 2 years now.
While we still support the spirit of this issue, it won't be implemented anymore as we are foreseeably transitioning our own usage of this block to the Dashboard blocks which have been dramatically improved from Moodle 3.6 on and thus can't spend any more resources on improving this plugin substantially.
Cheers,
Alex
from moodle-block_course_overview_campus.
Related Issues (20)
- Wrong id used for teacher filter HOT 4
- Eye icon not work HOT 1
- Notification : duplicate value - Debug Mode HOT 9
- Missing course category attribute HOT 1
- Bug: Refreshing VLE page shows category as empty HOT 13
- Suggestions HOT 4
- "Undefined variable: modchoices" error whenever I perform an upgrade HOT 2
- Problem with dropdown after logging back in HOT 3
- Error when users are enrolled in too many courses (or long course names) HOT 5
- Plugin Name in language file HOT 7
- pix_url is depraceted in Moodle 3.4 HOT 1
- User can see hidden categories HOT 1
- Moodle 3.5 compability? HOT 1
- Suggestion: Separate link for category/top category at course list output HOT 2
- PHP Notice: Undefined variable / PHP Warning: array_key_exists() expects parameter HOT 3
- Plugin breaks behat tests
- "No courses" text HOT 1
- Please add a "Reset filters" button HOT 3
- Remove course news functionality as it does not work anymore from Moodle 3.7 on HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-block_course_overview_campus.