UserProfile
A user’s profile page is the person's home on the website. The UserProfile control displays following information about a user.
- Avatar
- Personal tags
- Screen name
- Custom properties
- If community aliasing for users is enabled, the user's alias (following Profile Links)
Logged-in users can edit their profile by clicking Edit Profile in the top right corner. This dialog box is the same dialog that a membership user uses to create an account on the site. See Membership Users and Groups for a description of this dialog. To automatically create a friendly URL for a user profile, you can use Community Aliasing for Users. See also: Types of URL Aliasing.
Inserting the UserProfile 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 UserProfile 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:UserProfile ID="UserProfile1" runat="server" />
- Click on
UserProfile
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.
UserProfile 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.
- AvatarHeight (Integer)
The display height in pixels of the avatar in the profile area.
- AvatarWidth (Integer)
The display width in pixels of the avatar in the profile area.
- CacheInterval (Double)
The number of seconds that a 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.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See also: Caching with server controls.
- DefaultUserID (Long)
The default user ID for this control to use when there is no matching dynamic parameter value 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. - 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 user ID dynamically. To use the default object ID, leave blank.
- EnableEmailDisplay (Boolean)
Set to True to display a user’s email address in the profile. If a user’s Private Profile setting is set to
Private
, the profile information is not visible, regardless of this property’s setting. If Private Profile is set toColleagues
, only a user’s colleagues can see email information.- True. Display a user’s email address in the profile.
- False. Do not display a user’s email address in the profile.
- True. Display a user’s email address in the profile.
- 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. - SuppressWrapperTags (Boolean)
Suppresses the output of the span/div tags around the control.
- True. Suppress wrap tags.
- False (default). Allow wrap tags.
- TagTemplate (String)
The Web page template that contains the CommunitySearch server control. This allows users to search for others users with the same tags. If a template is entered, Personal Tags in the Profile appear as links. Clicking a tag forwards the user to a User Search page that displays search results for the matching tag.
- 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.
- TaxonomyId (Long)
The numeric ID of the taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure. that is available to users. A user editing a profile can select which categories to associate with their profiles. See also: Organizing Content with Taxonomies
- 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.