Walrusking Posted March 1, 2020 Share Posted March 1, 2020 I am trying to get the group name from the group id but everything I have tried has not worked. I am doing this in the html templates to display all secondary usergroups but I want to exclude some groups from displaying like the Adminitrators and Moderators group Link to comment Share on other sites More sharing options...
bfarber Posted March 2, 2020 Share Posted March 2, 2020 {expression="\IPS\Member\Group::load( $groupId )->name"} {expression="\IPS\Member\Group::load( $groupId )->formattedName"} First prints the name, second will use the group prefix/suffix around the name if desired and set up for the group. Link to comment Share on other sites More sharing options...
Walrusking Posted March 4, 2020 Author Share Posted March 4, 2020 Thank you that worked perfectly Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.