Saturday, November 22, 2008     | Register
To start or answer a thread you will need to login...


Forum Guidelines

Please ensure you follow the bug-raising guidelines (e.g. post the full error from your Event Viewer) if you are raising a support call. To request a feature in a module, please use Feature Requests (unless you want to discuss it here in more detail first). If you have an urgent feature that you would like to see in the product then you should consider a Sponsored Enhancement.

 

First Time User? Make sure you have read the Module Config Guide in the documents folder of each module. Also check out this handy Module Deployment Guide (written by a Smart-Thinker customer!)

Configuration issues and no time to read the Forums/Documentation? See our DotNetNuke Premium Support Service.

 

We need your opinion! Please read our proposed new CrowdSourcing development method and let us know if you would be interested and if it might work.

 
 
  Forums  DotNetNuke  General  HTML Template Token Help
Previous Previous
 
Next Next
New Post 1/10/2008 11:48 PM
Informative
  Rodney Joyce
2908 posts
www.DNNDir.com
1st Level Poster




HTML Template Token Help  (Australia)

The majority of views within the Smart-Thinker Modules use HTML templates with "tokens" to allow for dynamic output.

This is the core list of tokens that every template can access. Have a look in each module forum for a more specific list for that module in addition to these (please note that some of these tokens cannot be used in all situations, and some need certain other modules and settings configured. If in doubt then please ask on the particular module forum.

ISINROLE [ISINROLE|RoleName|OutputIfTrue] - If the user is in this role then the text (OutputIfTrue) is displayed (nothing is displayed if they are not). E.g. "[ISINROLE|Administrators|I am an Admin]" Available in UserProfile 4.3.10 so far
ADDTOEVENTS Hyperlink for inviting a user to an Event Must have the Events module (4.3.7+ installed)
ADDTOGROUPS Hyperlink for inviting a user to a Groupt Must have the Groups module (4.3.5+ installed)
TABID TabID of the page that the module is on  
MODULEID ModuleID of the module  
FULLNAME Firstname + Lastname of the user  
USERID UserID of the user  
USERNAME UserName of the user  
DISPLAYNAME DisplayName of the user  
EMAIL Email of the user  
LASTLOGINDATE The date that the user last logged into the portal  
JOINDATE The date that the user joined the portal  
PROFILEIMAGE Returns the user's profile photo (or the default if they don't have one) Must have the UserProfile module installed
PROFILEIMAGEURL Returns just the URL of the user's profile photo (useful for an IMG tag) Must have the UserProfile module installed
PROFILEIMAGESMALLURL Returns just the URL of the user's profile smaller photo (50*50 pixels) Must have the UserProfile module installed
USERONLINEIMAGE Returns the image to denote if the user is online or offline Must have the UserProfile module installed
STUSERPROFILEURL Returns the URL that will link to the user's profile Must have the UserProfile module installed
SENDPRIVATEMESSAGE Shows the button for sending a private message to this user Must have the Ventrian Private Messages module installed
DISPLAYNAMESTUP Returns the clickable DisplayName that links to this user's profile Must have the UserProfile module installed
VIEWCOREINFO Admin only - links to the core user record for this user  
FULLADDRESS Returns a well-formatted address (with what has been filled in)  
GENDER Returns the user's gender if they have a Profile Property called "Gender" configured Can be localised (Gender.Male and Gender.Female)

 


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
Previous Previous
 
Next Next
  Forums  DotNetNuke  General  HTML Template Token Help
Top Threads
In the past 1 week, we have 29 new thread(s) and 70 new post(s)
The most popular thread has been Re: Multipaid Sponsored Enhancements
The most active thread has been Multipaid Sponsored Enhancements / Crowdsourcing to improve modules
Smart-Thinker is powered by DotNetNuke - please support us and DotNetNuke - DotNetNuke Powered!
© 2008 Smart-Thinker   |  Privacy Statement  |  Terms Of Use