Learn More





User profile templates

Return to previous page

  • 4/7/2015



User profile templates

Last updated 8 years ago



(Enter the content of this article below)


DotNetNuke has long supported User Profile Properties, and allowed site administrators/hosts to determine what fields are necessary for site registration/usage. These can be accessed under the admin->user accounts menu by clicking manage profile properties. However one draw-back was that profile details were in a simple list and did not support rearranging or styling. With the 5.4.0 release, DotNetNuke added the ability to alter the template used for the user profile details of site users. This is now controlled by the view profile module, an instance of which is automatically added to each portal.

If a host or site administrator wants they can configure this by logging in, clicking on their username to access their profile, and then editing the settings of the module. In the module settings, a section called "View Profile Settings" can be seen which contains the template used. It consists of HTML and Tokens , and can be easily updated/styled as desired.

An example of the default template can be seen below - the values in the square brackets are Tokens .

<div id="UserProfile">

<img alt="Profile Avatar" class="ProfilePhoto" width="120" height="120" src="[PROFILE:PHOTO]" />
<div class="ProfileAddress">
<div class="ProfileName">[USER:DISPLAYNAME]</div>
<div class="ProfileContact">[PROFILE:TELEPHONE] [PROFILE:WEBSITE] [PROFILE:IM]</div><div style="clear:both;"></div>
<div class="ProfileBio">[PROFILE:BIOGRAPHY]</div>
Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out