Accessing a User Profile

A profile stores and maintains information about a user.

UserProfile server control

UserProfile Server Control

A user’s profile page is the person's home on the Web site. 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 Server Control for a description of this dialog. To automatically create a friendly URL for a user profile, you can use Community Aliasing for Users. Community URL Aliasing for more information.

You can see a sample profile on the eIntranet My Profile page's top left corner.

UserProfile server control properties

The following are Ektron-specific server control properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.

  • Authenticated (String)

    Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.

  • 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 the server control’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! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.

  • 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 his profile. If a user’s Private Profile setting is set to Private, his profile information is not visible, regardless of this property’s setting. If Private Profile is set to Colleagues, only a user’s colleagues can see email information.

    • True—display a user’s email address in his profile.
    • False—do not display a user’s email address in his 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. The location can be relative or absolute. Leave blank to use the default style sheet.

  • 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 taxonomy that is available to users. A user editing a profile can select which categories to associate with their profiles. See Also: Taxonomy

  • 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.