FMCorz/moodle-block_xp

Rule that match a component by type

Closed this issue · 3 comments

Canx commented

Hi, I would need this specifically in Level Up Plus to combine with a "Completed activity" event rule in order to filter them by component (questionary, task, workshop...), as currently there is no "Completed activity" option.

Now I can combine with a concrete component rule, but that would mean to add every new activity to the rule.

Good suggestion, I've had that in mind as well. In the mean time, the workaround is:

Event property [Name] contains [mod_assign/]

Where mod_assign/ is replaced with the full name of other components: mod_quiz/, mod_workship/...

Canx commented

Thanks Fred! This will solve it perfectly for now.

Closing this as an additional rule for targeting the component itself does not seem to be requested by more users, and would generally be advanced enough for educators to use the above workaround.