CommunityGroupProfile
The CommunityGroupProfile server control displays the profile of a community group. You can see an example of the CommunityGroupProfile server control in the Ektron Tech site > Community > Community Groups > select any group. The profile includes:
- an image associated with the group
- a description of the group
- tags assigned to the group
- whether the group is Public or Restricted
- the date the group was founded
- location information
- group members
- group administrator
- an Edit link that lets you update profile information and group settings
Inserting the CommunityGroupProfile server control onto a page
Prerequisite
You must have installed the server controls. See Installing server controls into Visual Studio Toolbox.
- In Visual Studio, choose View > Toolbox.
- Click the Ektron server control tab to display the server controls.
- Drag the CommunityGroupProfile server control and drop it into the desired location on the page.
NOTE: You also can place the cursor on the page where you want the server control, then double click the server control that you want.
<CMS:CommunityGroupProfile ID="CommunityGroupProfile1" runat="server" />
- Click on
CommunityGroupProfile
in the code to display and modify the control’s properties using the Properties window of Visual Studio. The page is updated as you modify the property values.
CommunityGroupProfile properties
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. For information about native .NET properties such as font, height, width and border style, use Visual Studio® help.
- DefaultGroupID (Long)
The default community group ID for this control to use when no matching dynamic parameter value is passed.
- DisplayXslt (String)
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! Files stored in the
siteroot\Workarea
folder are overwritten (or deleted) when you upgrade Ektron. To avoid problems, copy the default file to a folder outside thesiteroot\workarea
folder then edit it. If there is no default file, create the file outside thesiteroot\workarea
folder. Next, in this property, enter the path to that file relative to the site root folder.WARNING! If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored.
- DoInitFill (Boolean)
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
- DynamicParameter (String)
Gets or sets the QueryString parameter to read a community group ID dynamically. To use the default community group ID, leave blank.
- GroupAdminLink (String)
Add a link to the administrator’s profile page. This lets a user click a link in the community group page's profile area and be directed to the administrator’s profile page. Two variables in the link identify the administrator.
- {0}. Administrator’s ID
- {1}. Administrator’s name
Both variables must be in the link. The Web form can be relative or absolute. Below is an example.
adminprofilepage.aspx?aid={0}&an={1}
- GroupAdminLinkTarget (ItemLinkTargets)
Determines the type of window that appears when you click a link in the server control.
- _Self (default). Opens in same window.
- _Top. Opens in parent window.
- _Blank. Opens in new window.
- _Parent. Opens in the parent frame.
- Hide (Boolean)
Hides or displays the output of the control in design time and run time.
- True. Hide the control output.
- False. Display the control output.
- Language (Integer)
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
- Stylesheet (String)
Specify the path to a style sheet for use with this server control. Leave blank to use the default style sheet. To use a custom style sheet, place it in a folder outside the
siteroot\workarea
folder then edit it. Next, in this property, enter the path to the custom style sheet relative to the site root folder.NOTE: If you enter a valid EkML file at the
MarkupLanguage
property, theStylesheet
property is ignored. - SuppressWrapperTags (Boolean)
Suppresses the output of the span/div tags around the control.
- True. Suppress wrap tags.
- False (default). Allow wrap tags.
- TagTemplate (String)
Add a path to another Web form to create links for the tag text. The path can be relative or absolute. By providing the path to CommunitySearch server control, a user viewing the profile can click a tag and search for other groups with the same tag. Five parameters, which are automatically added to the link’s QueryString, let you pass information about the tag.
- searchgrptag. The tag’s text for community groups
- TagId. The tag’s ID
- TagLanguage. The tag’s language
- TagCount. The tag’s count. That is, the number of times a tag has been used.
- TagType. The tag’s type: user or community group
You can also add your own parameters by defining them in the path. If you do, these parameters will be appended to yours. See also: Tagging Content, Library Items, Users, and Groups with Keywords
- TagTemplateTarget (ItemLinkTargets)
Determines the type of window that appears when you click a link in the server control.
- _Self (default). Opens in same window.
- _Top. Opens in parent window.
- _Blank. Opens in new window.
- _Parent. Opens in the parent frame.
- WrapTag (String)
Lets a developer specify a server control’s tag.
- Span (default). Designate an inline portion of an HTML document as a span element.
- Div. Apply attributes to a block of code.
- Custom. Lets you use a custom tag.