+

Search Tips   |   Advanced Search


Use a user name element

A user name element displays the current user's name in a presentation template, component design or element design. You can only use a user name element by creating a user name component. You cannot add a user name element to authoring templates, sites, site areas or content items.

  1. From an authoring portlet, click New > Component > User Name .

  2. Enter identification information for the component.

  3. Create an anonymous user design. This is used when an anonymous user accesses a Web site. You must select "Display Anonymous" to enable the Anonymous user design. If "Display Anonymous" is not selected, the User name element will not be rendered when an anonymous user accesses a Web site.

  4. Create a user name design. This is displayed when an authenticated users accesses a Web site. Use a placeholder tag with a value of "name" in the user name design to display the name.

    For example:

    <placeholder tag="name" start="Welcome " end=" to this Site" />
    
    To display the distinguished name of a user, use tag="dn".

    <placeholder tag="dn" start="Welcome " end=" to this Site" />
    

  5. If workflows are enabled for components, select a workflow.

  6. Set access properties.

  7. Save the component form.


Parent topic:

Work with elements