By Lee Sykes
February 2008
In this tutorial we demonstrate how to use Token Replacement which is available for DotNetNuke versions 4.6 and above.
Token Replacement is currently available for the Text / HTML, Newsletter and User Defined Table (UDT) core modules, and it is likely that it will be included in other core modules in future releases as well.
Token replacement allows you to display information such as the username, date, portal title etc. and you can display this information directly within the text of your modules.
The video tutorial comes complete with a pdf file outlining the tokens available and the formatting of the token replacement code.
The video covers:
Video
- Introduction
- Using the UDT module to view the tokens available
- Using token replacement in the Text / HTML module
- How to enable token replacement in the Text / HTML module
- How to add a token to the Text / HTML module
- [Object:Properties]
- Example, "welcome 'username' to the website"
- Example "Dear 'firstname',"
- Demonstration of the text if the user is logged out
- [Object:Properties|Format]
- How to remove the text if the token does not contain any data
- How to display the date token
- How to use the format property to specify the formatting of the date
- Viewing the tokens while logged out
- [Object:Properties|Format|IfEmptyReplacement]
- How to display token text to a logged in user and different text to a logged out user
Time Length: 12min 30secs