Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Is there a way to limit the number of groups a user role can create in the Community Site? View modes: 
User avatar
Member
Member
sabrina.cameron-rogers - 11/7/2010 2:42:44 PM
   
Is there a way to limit the number of groups a user role can create in the Community Site?
I am using the Community Site template and would like to show the "Create a Group" shortcut to certain user roles but I want to limit how many groups they can create.

Any suggestions?

Thanks,

Sabrina

User avatar
Kentico Support
Kentico Support
kentico_radekm - 11/8/2010 4:25:56 AM
   
RE:Is there a way to limit the number of groups a user role can create in the Community Site?
Hello.

You will need to customize proper web part: /CMSWebParts/Community/Shortcuts.ascx(.cs).

Here, "Create a Group" link button is defined like:

<cms:LocalizedHyperlink ID="lnkCreateNewGroup" runat="server" ResourceString="group.creategroup" />

So, you can set lnkCreateNewGroup.Visible property to true/false according to current user´s role (in SetupControl method).

You can see how to check current´s user role here.

Best Regards,
Radek Macalik

User avatar
Member
Member
matthew.newby-crl - 2/28/2014 1:31:08 PM
   
RE:Is there a way to limit the number of groups a user role can create in the Community Site?
I'm looking for more informatin on the cms:LocalizedHyperlink tag. In specific, how do I send in alt text when the ID contains an image that we want to have hyperlinked? I have some properties added to an hlImage object in the .ascx.cs file: hlImage.Visible, hlImage.ImageURL, and hlImage.NavigateUrl. However, I don't know what the property name is to set to a string containing the alt text. Right now the resulting img tag has alt="".

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 3/1/2014 2:38:53 AM
   
RE:Is there a way to limit the number of groups a user role can create in the Community Site?
Hi,

As the forums are obsolete, this question is being continued in:

http://devnet.kentico.com/questions/documentation-on-cms-localizedhyperlink

Kind regards,
Richard Sustek