Hey there! I'm quite new to silverstripe and is still trying to figure out my way around. anyway, i'm trying to have custom group forms (by making security groups in the cms) in which the members of each group can access certain web pages and its functions, but i'm having a bit trouble "separating" the groups from each other when i get into the templates. Put quite simply, for example, i want group A to do actions X and Y, but I want group B to do only action Y. Now, is there any way to make a simple if-else statement which returns true if a specific security group name is met:
(i.e. <% if CurrentMember.SecurityGroup = 'thisname' %> //do this, or something like that)
Second question, how can I add custom fields for the members in the security groups? Basically, i want to add another field called 'ranking points' aside from the firstname, surname, email, and password fields.
I'm so sorry i'm just a newbie in PHP, i'm trying out many things to figure out how to solve my problems but it seems that i have found no luck.