GithubHelp home page GithubHelp logo

Suggestion: Students see list of all courses they are enrolled to, but can only access those available. about moodle-block_course_overview_campus HOT 2 CLOSED

moodle-an-hochschulen avatar moodle-an-hochschulen commented on July 18, 2024
Suggestion: Students see list of all courses they are enrolled to, but can only access those available.

from moodle-block_course_overview_campus.

Comments (2)

abias avatar abias commented on July 18, 2024

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.

abias avatar abias commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.