Create link to page with filter selected

Re: Create link to page with filter selected

by Paul Vincent -
Number of replies: 0
Hi Marty,
I just came across your post while looking for the same fix. I've actually applied a fix via a template file already (a modification of grading_navigation_user_selector.mustache of mod_assign via our theme's templates directory), but I'd also rather use a filter through a URL, so as not to force the filter upon all users who visit the grader interface. Did you find a solution? I have noted that for some reason the grader interface occasionally applies '&filter=require_grading' rather than requiregrading as the key has it, but even using that variation doesn't appear to have any effect.

In case it helps, the current fix we have in place via the mustache template is on line 56 of the file, within the 'configure-filters' region. Just add this line before the mustache-provided values line:

   <option value="requiregrading" selected="selected" hidden > Requires marking </option>
And the filter should be applied by default whenever the Grader interface is loaded.