FMCorz / moodle-block_xp

A gamification plugin for Moodle allowing students to gain experience points and level up.
https://levelup.plus/?ref=github
150 stars 41 forks source link

Rule that match a component by type #75

Closed Canx closed 4 years ago

Canx commented 6 years ago

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.

FMCorz commented 6 years ago

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 6 years ago

Thanks Fred! This will solve it perfectly for now.

FMCorz commented 4 years ago

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.