FilterCodes plugin for Moodle

FilterCodes plugin for Moodle

by John Provasnik -
Number of replies: 1
Picture of Particularly helpful Moodlers Picture of Testers
Hi all -- Looking for some suggestions.
Currently, we are using the {ifingroup} tag to filter text for students based on their course group.
The teaches also place themselves into the group so they can see "all" the text options for all groups.
The issue we have is with Tutors -- we have 30 tutors that work with students in a variety of classes, and since the tutors do not enroll themselves into the courses (nor have the 'teacher' role), they cannot see the directions for the different groups of that course. Our tutors do have a site-wide "staff" role that allows them access to all courses and all groups without having to be enrolled.

Would it be possible to create a filter using a combination of 2 tags? example:
*You can see this text IF * {ingroup} OR {ifrole}
In reply to John Provasnik

Re: FilterCodes plugin for Moodle

by Michael Milette -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi John,

You can usually simply nest FilterCodes {if...} tags to do AND type operations.

Unfortunately I have not yet come up with a way yet to OR them as described in your example. If you have any suggestions on how I might do this, please add it as a feature request at https://github.com/michael-milette/moodle-filter_filtercodes/issues

Best regards,

Michael