group-name in a label

group-name in a label

by Björn Gerß -
Number of replies: 4

Hello everyone,

Is it possible to make a label like “You are in GROUPX.” in a course?

Where GROUPX shows the name of the group?

I found how to make labels for only one group, but I’m looking for a way to access the group-name in the label directly.

I’m working with moodle 3.9.

Thanks in advance,

Björn


Average of ratings: -
In reply to Björn Gerß

Re: group-name in a label

by Eric Hagley -
If you set restrictions to only show to that group then yes. If you have a lot of groups though, that will make for a lot of labels! How many groups do you have? There may be another way around this if you have a lot of groups but see how you go with using restrictions.
Average of ratings:Useful (1)
In reply to Björn Gerß

Re: group-name in a label

by Dave Sherwin -
We use the FilterCodes Plugin which is enable you to insert plain text tags like {firstname} in a course to personalize the site with students individual names. Rather simple just need to remember to enable the filter. I noticed that there was a code {/ifingroup} to display content if the user is part of the specified course group ID. 
Just another option.
Average of ratings:Useful (1)
In reply to Björn Gerß

Re: group-name in a label

by Björn Gerß -
Thanks for the good ideas. In both filters I did not find the function directly, but it the problem sounds solvable.
At the moment, everything can be done by restrictions. But the filters do scale better.