Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Adding link in the report section of the course menu #71

Open
Kathrin84 opened this issue Dec 16, 2019 · 2 comments
Open

Comments

@Kathrin84
Copy link

Hi Tim,

currently I'm trying out several report plugins and I like this plugin very much. As there are already capabilities defined for who can access a special report and also because in theme Boost the navigation block is not intended to be used, I was wondering if it's possible to add a link to the reports on the course level in the report section? (Furthermore, if I did not oversee anything then currently there is no variable for the course id defined?)

So my proposal is to enhance the plugin by the possibility to use the course id as a variable and add a link to the report section in the course (of course only if there is an accessible report for the teacher available).
Then the admin could define some course related reports that might be interesting for teachers and they could easily access it within their courses.

What do you think about this?

Best, Kathrin

@timhunt
Copy link
Member

timhunt commented Dec 16, 2019

If you want course-level reports, then you might want to look at https://moodle.org/plugins/block_configurable_reports.

You can always link directly to the query results for any query. The URL .../report/customsql/view.php?id=45 is fixed and safe to link to.

As of version 3.7 of this plugin, you can define a report that uses placeholder :courseid in the query, and then add &courseid=123 to the URL for the query, and that will so straight to the report.

The problem will be capabilities. These reports always live in the 'System' context in Moodle, and that is where permisisons are checked. So, to access the reports, you need a site-wide role that gives you an appropriate capability.

@Kathrin84
Copy link
Author

Kathrin84 commented Dec 23, 2019

Hi @timhunt,

thank you very much for your quick feedback and your explanations helped understanding the plugin a little better.

If you want course-level reports, then you might want to look at https://moodle.org/plugins/block_configurable_reports.

I've already tested this plugin, but for several reasons we thought that your plugin would fit our needs better. :)

Best, Kathrin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants