Popular Tags...
Recently Viewed...
DNN Modules
   
SnowCovered Top Sellers

View Active Social Suite for DNN
Active Social Suite for DNN
 by Active Modules, Inc.
Active Social is customizable social networking solution that fits the needs of a large company, small group, start-up business, or any size interest group. Connect with co-workers, people with similar interests, family, old friends, or meet new ones. Active Social provides a complete communication ...read more
Posted: Thursday, October 29, 2009

View Ultra Video Gallery 3
Ultra Video Gallery 3
 by BizModules.net Solutions
Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet and play them in our integrated flash video player....read more
Posted: Friday, February 13, 2009

View Event Calendar and Registration 3.0
Event Calendar and Registration 3.0
 by Invenmanager.com
One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!...read more
Posted: Sunday, July 12, 2009

View Ultra Media Gallery 5.5
Ultra Media Gallery 5.5
 by BizModules.net Solutions
Ultra Media Gallery is the most popular photo gallery and media gallery solution for DotNetNuke, UMG offers 10 different flash player to browse your gallery with completely different user interface experience....read more
Posted: Wednesday, May 13, 2009

View Dynamic Forms 3.1
Dynamic Forms 3.1
 by Data Springs, Inc.
In this day and age, knowing as much detailed information as possible about your customer, prospect or web site user is essential. Thankfully, the new 'Dynamics Forms' module from Data Springs, makes it easier than ever to segment your data collection efforts. ...read more
Posted: Tuesday, September 29, 2009

View Puure // Skin Tuning // DNN + Sharepoint // W3C v1.1
Puure // Skin Tuning // DNN + Sharepoint // W3C v1.1
 by BIND (www.bind.pt)
Puure is the first cross-platform skin pack, with DNN or Sharepoint versions. With Skin Tuning available, it includes Ultimate JQuery Header module free! Discover our DNN Modules Skin Add-On, one you can't miss. 100% W3C CSS/XHMTL1.0 compliant, for DNN4 and 5. NEW! Add-On for Open-Document Library...read more
Posted: Tuesday, November 03, 2009

View Open-DocumentLibrary 4.1
Open-DocumentLibrary 4.1
 by Xepient Solutions
Powerful, Ajax Enabled, Easy to Use. Document Management and Multimedia gallery functionality in one.Open-DocumentLibrary allows DotNetNuke users to organize share and manage documents, offering granular control over Folder and Document access....read more
Posted: Wednesday, April 01, 2009

View Flex2 By DrNuke + EasyMod Module
Flex2 By DrNuke + EasyMod Module
 by DrNuke
The amazing ANY COLOUR Flex2 skin + our unique EasyMod module allowing you to customise just about everything in this skin. DrNuke just re-wrote the rule book again....read more
Posted: Wednesday, May 13, 2009

View Dynamic Registration 3.2
Dynamic Registration 3.2
 by Data Springs, Inc.
Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options.........read more
Posted: Tuesday, June 17, 2008

View Data Springs Collection  3.0 (23 Modules)
Data Springs Collection 3.0 (23 Modules)
 by Data Springs, Inc.
Capture your users attention, enrich your site with multimedia flash, and create and opt in distribution list for your DNN site. These are just a few of the many features the Data Springs Module Collection can provide you....read more
Posted: Sunday, September 27, 2009

    |   Register   |   Thursday, September 02, 2010   
You are here:Resources  Articles & Information  DNN Text/HTML Token Replacement Options  


DNN Text/HTML Token Replacement Options

DNN Text/HTML Replacement Tokens Options

 


Starting with DotNetNuke version 4.6.0 a new feature was added to the Text/HTML module that allows you to use replacement tokens inside your content. This is something that many people do not even notice and was not highly publicized at the release of 4.6.0. This article will first of all show you the different settings available and the differences between them, then it will show you how the tokens can be used, and to finish up a quick discussion on performance implications will be completed as well.

 

The Settings

 

Below are the settings made available via the “Settings” option for all instances of the Text/HTML module.

 


 

The default option is “no Replace”, this option provides a Text/HTML module that functions just like all other instances of the module had functioned before. Limited replace provides you with just a few replacement options, and is great if you simply want to inject the portal name, date or time. Lastly enhanced replace will allow you to customize content based on other objects such as the user information or module information.

 

For tokens to be replaced you must select an option other than “no Replace” in the settings. The downfalls of using token replacement will be discussed in detail at the end of this article

 

Using the Tokens

 


Using the tokens is very easy and follows the standard token schema used elsewhere in DotNetNuke. A token is defined inside a set of [] characters, for example to display the portal name you would use [Portal:PortalName]. This is great for those easy to remember tokens, but one item that many people request is a listing of all tokens. This is not something that is provided by the Text/HTML module, however the UDT module has a listing. Below is a copy of that listing for your reference.

 

Token

Description

[Portal:Currency]

Currency String

[Portal:Description]

Portal Description

[Portal:Email]

Portal Admin Email

[Portal:FooterText]

Portal Copyright Text

[Portal:HomeDirectory]

Portal (relative) Path of Home Directory

[Portal:LogoFile]

Portal Path to Logo file

[Portal:PortalName]

Portal Name

[Portal:PortalAlias]

Portal URL

[Portal:TimeZoneOffset]

Difference in minutes between Portal default time and UTC

 

 

[User:DisplayName]

User’s Display Name

[User:Email]

User’s Email Address

[User:FirstName]

User’s First Name

[User:FullName]

[deprecated]

[User:LastName]

User’s Last Name

[User:Username]

User’s Login User Name

 

 

[Membership:Approved]

Is User Approved?

[Membership:CreatedDate]

User Signup Date

[Membership:IsOnline]

Is User Currently Online?

 

 

[Profile:<Property>]

Use any default or custom Property defined for user profiles as listed in Profile Property Definition section of Manage User Accounts. Please use non-localized Property titles only.

 

 

[Tab:Description]

Page Description Text for Search Engine

[Tab:EndDate]

Page Display Until Date

[Tab:FullUrl]

Page Full URL

[Tab:IconFile]

Page Relative Path to Icon file

[Tab:KeyWords]

Page Keywords for Search Engine

[Tab:PageHeadText]

Page Header Text

[Tab:StartDate]

Page Display from Date

[Tab:TabName]

Page Name

[Tab:TabPath]

Page Relative Path

[Tab:Title]

Page Title (Window Title)

[Tab:URL]

Page URL

 

 

[Module:Description]

Module Definition Description

[Module:EndDate]

Module Display Until Date

[Module:Footer]

Module Footer Text

[Module:FriendlyName]

Module Definition Name

[Module:Header]

Module Header Text

[Module:HelpUrl]

Module Help URL

[Module:IconFile]

Module Path to Icon File

[Module:ModuleTitle]

Module Title

[Module:PaneName]

Module Name of Pane where UDT resides

[Module:StartDate]

Module Display from Date

 

 

[DateTime:Now]

Current Date and Time

[Ticks:Now]

CPU Tick Count for Current Second

[Ticks:Today]

CPU Tick Count since Midnight

[Ticks:TicksPerDay]

CPU Ticks per Day (for calculations)

 

You can use any combination of these tokens to provide your new display. For example if I want to display text welcoming a user to the site and letting them know the current date and time. I would use enhanced replacement and when editing the text I would have the following text.

 


 

When logged in as a host user I would see the following text




Using this example you can see how you can create dynamic content that will customize messages for users or different portals with ease.


 

Downfalls to Using Replacement Tokens

 


As with most things there is always a down side to a positive item, there is no exception when talking about replacement tokens inside the Text/HTML module. Even though the tokens are a great feature they do have two major downfalls. The first is that when using tokens inline editing is disabled. For most users this is not an issue, you simply have to use the “Edit Text” link to edit the content of the module.

The other downfall of token replacement is that if enabled ALL caching for the module is disabled, this means that each page request will result in a direct query to the database, parsing of the text, and then display. By default Text/HTML content is cached for 20 minutes, if you enabled token replacement every request will generate the content new. In smaller sites this is not an issue, but in high activity sites, this additional database and server traffic can have an effect on site performance, therefore it is cautioned that you should ONLY enable this functionality when it is needed.

This should serve as a good overview on how replacement tokens and the Text/HTML module work. You will need to experiment with the token listing to truly experience the flexibility that you can have with token replacement.

 
Records per Page
Page 1 of 2First   Previous   [1]  2  Next   Last   
kusum kalal         5/24/2010 6:10:03 AM
Not able to find [Portal:PortalAlias] token Hi, whenever i try to use [Portal:PortalAlias] token , it gives me error as below: "Error accessing [Portal:PortalAlias], PortalAlias is unknown for datasource Portal. " Please help me ASAP. -kusum Submitted By: kusum kalal

Bogdan Litescu         3/31/2010 1:26:42 PM
MyTokens Hello, Some time ago I needed a lot more from tokens and ended up writing my own module which ended up as a commercial module. Today it supports creating tokens from Database, local files, files on FTP Servers, HTTP Requests, POP3 and IMAP Servers. MyTokens answers the requests on this page: it provides a Skin Object that can be used to display tokens in DNN Skins, can count documents by using db tokens, etc. You can read more about MyTokens and download a trial here http://www.avatar-soft.ro/Products/MyTokens/tabid/148/Default.aspx Regards, Bogdan Submitted By: Bogdan Litescu

ChrisS         1/19/2010 5:37:23 AM
Does it work with DNN 5.1.4? I tried to populate some of the tokens in the module and had no luck ! (: Any hint? Submitted By: ChrisS

Lance         11/21/2009 6:34:20 PM
"I know that [Token:TabID] also works. I was also wondering if this could be incorporated into a skin object? " try: <%=portalsettings.activetab.tabid %> Submitted By: Lance

Arvind         7/23/2009 11:31:55 PM
Any token that returns true for RegisteredUser Is there Any Token that returns True if it was registeredUser . My requirement is I had to show content according to the roles Submitted By: Arvind

Vedran         5/14/2009 4:30:40 AM
Token replacement in page templates Hi, is there a way to automatically set token replacement in text/HTML modules on pages created with page templates? The version of our text/ HTML module is 04.08.01, and we have to manually turn on this option in module settings each time we create a new page with template. Thanks Submitted By: Vedran

Neenu         3/13/2009 9:28:47 PM
Module-Enquiry Hi,Is there any module which has basics of text/html module plus one thing like to make a particular link we have interface (like in links module) to shift to a particular page/external url etc? Submitted By: Neenu

vishal         2/26/2009 9:42:42 PM
Question Hi, I want to know that is there is any module or any command/token to count the no. of downloaded documents on different pages. If yes than please than please let me know... thanks, Vishal thakur Submitted By: vishal

         9/2/2008 4:52:41 AM
Registration Token Is there any token for user registration link as I want to display from htmltext module

         7/22/2008 9:53:12 AM
More Tokens I know that [Token:TabID] also works. I was also wondering if this could be incorporated into a skin object?

Feedback





CAPTCHA image
Enter the code shown above in the box below
Send

 
Data Springs DNN Modules

Data Springs offers cost-saving packages that fit your needs:

View Dynamic Registration 2.4 Enterprise Edition

Data Springs Collection 3.0 (23 Modules!)

Capture your users attention, customize your registration and set up various forms.  Enrich your site with animation then create email distribution lists for your DNN site.  Just a few of the many features you get with the Data Springs Module Collection!  .....more

Best Value!  All the modules in the Collection sum up to more than $2000.00!

 

$ 479.00

Data Springs User Management Suite

Take hold of all the tools you need to enhance user & profile management from A to Z!.  A comprehensive package with 5 feature-packed modules that offer extensive admin controls and easy user interface geared towards an effective and growth-oriented site!  .....more

 

Includes:  Dynamic Registration     Dynamic Login   ♦   Interactive User Import     Dynamic User Directory   ♦   Renewal Reminder    A value of more than $630.00!

 $ 339.00

 

 

Check out all our individual modules!

 

 View Dynamic Registration

 Dynamic Registration 4.0

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options.........more

$ 169.00

 View Dynamic Forms

 Dynamic Forms 3.4 (Just Released Aug of 2010!)

Whether it's for marketing, sales, contact forms, scheduling, information requests, surveys, or to simply better understand your customer needs, the possibilities for creating powerfully effective forms are now easy and endless! .....more

$ 179.99

 

 Dynamic Views 1.0

Now have an easy yet feature-rich reporting module with custom defined display templates and unlimited search options from  Dynamic Forms or any data source like a table, view or custom query!  .....more

$ 129.00

 View Dynamic Login Module

Dynamic Login 3.3

The content on your site isn’t vanilla, so why is your portals login? The user login page is used by every user registered in your portal, but yet once they sign in they go to the exact same page? Customize your portal with Dynamic Login to offer additional features and enhancements during the login.   .....more

 

$ 129.00

 View Interactive User Import

Interactive User Import 2.1

Interactive User Import provides you with the functionality to easily and quickly import users into DotNetNuke and Dynamic Registration, through a streamlined and well-documented wizard that includes many advanced features........more

 

$ 149.00

 View Dynamic User Directory

 Dynamic User Directory 3.0

The perfect compliment for extending your portals users and community! An essential ingredient for managing dynamic user information, is being able to sort key fields and create useful user directories and custom report information. ...more

$ 139.00

 View Renewal Reminder

 Renewal Reminder 1.3 

Renewal Reminder provides you with the functionality to setup email notifications for users that their security role will soon expire. After installing your renewal / security role reminder module you can now setup scheduled notifications to be distributed to your users  .....more

 

$ 89.99
 View Opt In Email

 Opt In Email 4.3

'Relationship Building' and 'Communication' are two essential nuts and bolts for a business to prosper. This module allows you to bridge both of these and easily generate continuous awareness of your web site, products and services. Your prospects and customers will greatly appreciate this feature ...more

 

$ 139.00

 View Tailored Text

 Tailored Text 2.3

Personalization allows you to go the extra mile in communicating or connecting one to one with your clients.  Leverage the power personalized content on your DotNetNuke site. ..more

$ 109.99
 View Stock Quote

 Stock Quote 1.2 

Giving your site visitors relevant information is critical. With the Data Springs Stock Module you can provide your users with up to date financial information....more

 

$ 109.99
 View Presentation Archive

 Presentation Archive 2.0

With so much content on your web site, its important to give users an easy method for finding and retrieving content. Presentation Archive allows you to categorize, organize and present content within your DotNetNuke site for presentations, educational material, videos, and almost any document.  ...more

 

$ 124.99
 View Real Estate

Real Estate 2.3

 

Real Estate 2.3 is a feature rich and user-friendly module that allows your portal users the ability to create real estate listings on your site....more

$ 149.99
 View Dynamic Image Rotator

 Dynamic Image Rotator

Dynamic Image Rotator displays selected images and then rotates between the images using the Adobe® Flash® platform.  Several extended and optional features allow you to select the time to rotate each image, fade between images, and also display the images in either sequental or random order...more

 

$49.99
 View Info Pics Gallery

 Info Pics Gallery 

The Info Pics Gallery Module allows you to display thumbnail pictures with information to the user about each picture, along with a detailed description regarding the set of pictures and several other optional links. ...more

 $ 69.99
 View Testimonials Module

 Testimonials

The Testimonials Module allows you to display customer testimonials on your site, as well as an easy method for users to submit testimonials about your web site, services, or products....more

 $ 49.99
 View Dynamic Info Cube

 Dynamic Info Cube

Take your web site out of the box! Looking for a creative and interesting way to showcase information and content on your site? With millions of web sites offering information you need a fun way to display information and the solution is Dynamic Info Cube...more

 

$ 69.99
 Search Engine Optimization Cloud Module for DotNetNuke

 Dynamic Tags

Nearly every web site developer would agree that search engine optimization is one of key aspects to a successful web site. Part of search engine optimization requires providing search engines that crawl your web site with appropriate and meaningful content......more

 

$ 69.99
 View Page Tags

 Page Tags

'Page Tags' pulls in search terms that users searched to find the current page. There are many benefits to displaying these search words that delivered the user to the site, find our more details .......more

$ 59.99
 Random Rounded Images

 Random Rounded Images

Random Rounded Images is an easy to use upgraded version of the images module included with DNN. With RRI, you can select multiple images to display randomly when the module loads. For example, you can add 10 images to the module, and each time you refresh or load the page one of those images will...more

 

$ 49.99
 View Back on Track

Back on Track

Giving your site visitors fast access to areas of interest is vital to your web site's ease of use and ultimately - sales potential. ...more

$ 79.99
 

Dynamic News Ticker

Dynamic News Ticker allows you to scroll through news items in a horizontal or veritical direction with administrative features that allow you to easily customize the look of your news ticker. Each instance of Dynamic News Ticker can be set up to have different sizes, scroll directions, scroll speed .....more

 

$ 39.00
 View Quick Poll

 Quick Poll 

Give your users a voice, while also providing an important way for you to gather opinions from your users and measure visitors' responses to questions on your site! Polls are significant because they can provide a way for your web site visitors to share ideas and vote on topics of your choosing...more

 

$ 39.99
 View Flash Contacts

 Dynamic Contacts 2.0

Dynamic Contacts is the fastest and easiest way you can help visitors of your website connect with your key personnel. Going beyond an ordinary directory search, Dynamic Contacts quickly adds a personal touch, giving customers a face-to-face feeling - a key sales ingredient to building strong client/cu...more

 

$ 79.99
     

 

 

DNN Modules
Copyright 2005 - 2010 by Data Springs, Inc.
Contact Us | Terms Of Use | Privacy Statement