Hi - I’m trying to do this:
{exp:member:custom_profile_data}
{if member_group == "Super Admins"}
CONTENT
{/if}
{/exp:member:custom_profile_data}but it’s not working. Is there some other way to accomplish this?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
July 22, 2010 3:00pm
Subscribe [2]#1 / Jul 22, 2010 3:00pm
Hi - I’m trying to do this:
{exp:member:custom_profile_data}
{if member_group == "Super Admins"}
CONTENT
{/if}
{/exp:member:custom_profile_data}but it’s not working. Is there some other way to accomplish this?
#2 / Jul 22, 2010 4:42pm
I believe member_group accepts member group id’s not names.
Something like this should work.
{if member_group == "1"}
CONTENT
{/if}#3 / Jul 22, 2010 4:45pm
{member_group} returns the ID number for the currently logged-in user. This would be 1 for Superadmins.