Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Best way to add group-specific content View modes: 
User avatar
Member
Member
redbull40-gmail - 10/12/2009 12:43:32 AM
   
Best way to add group-specific content
Hi how can I have multiple web parts that display group-specific HTML? I basically want the group admins to be able to add links or event information into a couple different spots in the sidebar of my site. Their content should only show when the user is viewing pages in that group.

Is this possible?

Thanks!

User avatar
Member
Member
kentico_pavelk - 10/13/2009 8:53:31 AM
   
RE:Best way to add group-specific content
Hello,

Do you want to display the web parts to all users visiting group's pages or display the web parts on (let's say) all pages but only to particular users?


Best Regards,
Pavel Knotek

User avatar
Member
Member
Swish - 10/13/2009 12:35:34 PM
   
RE:Best way to add group-specific content
Yes it can show to all users visiting the group's pages.

Thanks

User avatar
Member
Member
kentico_pavelk - 10/14/2009 2:37:48 PM
   
RE:Best way to add group-specific content
Hello,

You can set the visiblity of the web parts to this macro expression:
{%communitycontext.currentgroup.groupname == "GroupName"%}

Where GroupName is name of the group. You can set this in Properties dialog of the web part by clicking on the small black triangle next to the Visible property.


Best Regards,
Pavel Knotek

User avatar
Member
Member
Swish - 10/15/2009 12:11:56 AM
   
RE:Best way to add group-specific content
Thanks, I think that solution will work for me!