Define component designs for different users | HCL Digital Experience
A user name element displays the current user's name in a presentation template, component design, or element design. You can use a user name element only by creating a user name component. You cannot add a user name element to authoring templates, site areas, or content items.
Procedure
- Enter identification information for the component.
- Create an anonymous user design. This design is used when an anonymous user accesses a website. You must select "Display Anonymous" to enable the Anonymous user design. If "Display Anonymous" is not selected, the user name element is not rendered when an anonymous user accesses a website.
-
Create a user name design. This design is displayed when an authenticated user accesses
a website. You can use a placeholder tag with a value of "name" in the user name design to
display the name of the current user. 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" ]