Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > *hide* webpart from specific groups View modes: 
User avatar
Member
Member
gatsby0121 - 2/15/2012 3:32:25 AM
   
*hide* webpart from specific groups
I have a webpart that I want to hide from anyone belonging to group x.

display to groups section is not an option since, this user is a member of one of the groups I want to show it to.

basically I have unauthenticated users, authenticated users and special users (who are also authenticated users).

I want to show this webpart to unauthenticated users and authenticated users, but not to special users. If I select to show to unauthenticated and authenticated, the special users will still see it, which I don't want. So how do I hide from just the special users?

For the records this is the static text webpart.

User avatar
Kentico Support
Kentico Support
kentico_janh - 2/15/2012 7:52:50 AM
   
RE:*hide* webpart from specific groups
Hello,

I suggest you to create your own custom macro, which will check, if a current user doesn't belong to the special group and if does, then it returns false and you can use this macro for setting the Visible property of your static text web part.

Best regards,
Jan Hermann

User avatar
Member
Member
gatsby0121 - 2/15/2012 8:12:28 AM
   
RE:*hide* webpart from specific groups
I saw a similar answer in a different post, but couldn't see how to apply that to my situation. What part in the visible properties are you referring to? I only have 2 checkboxes, display on pages, and show for roles.

User avatar
Kentico Support
Kentico Support
kentico_janh - 2/15/2012 8:37:58 AM
   
RE:*hide* webpart from specific groups
Hello,

You should be able to see following property in your static text web part:

User image

And you can add a macro into this check box by clicking on that little black arrow:

User image

Best regards,
Jan Hermann

User avatar
Member
Member
gatsby0121 - 2/15/2012 9:41:53 AM
   
RE:*hide* webpart from specific groups
I wasn't aware of that, thanks!