Friday, January 09, 2009

Smart-Thinker DNN Forums

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  Smart-Thinker U...  Adding a token
Previous Previous
 
Next Next
New Post 11/17/2008 4:57 PM
  Joseph Craig
42 posts
4th Level Poster


Adding a token  (N/A)

I want to add a token, COMPLETEUSERNAME, which is made up of prefix, firstname, middlename, lastname, optional comma, and suffix.

Is this as simple as constructing the thing and adding it as another case in TemplateEngine.cs?

 
New Post 11/20/2008 3:58 AM
  Rodney Joyce
3071 posts
www.DNNDir.com
1st Level Poster




Re: Adding a token  (N/A)

Yes, just add it to the switch statement. TemplateEngine is the base class that is used by all template views if the token is not found in the top class (e.g the Profile Main view would check all it's tokens then look in the base class if it did not find it, so TemplateEngine is the right place for it.


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  Smart-Thinker U...  Adding a token
Top Threads Minimize
In the past 1 week, we have 22 new thread(s) and 48 new post(s)
The most popular thread has been Re: Sponsored Enhancement Proposal Estimate - StoryFeed Commenting
The most active thread has been accept Friend Request?
Print  

Smart-Thinker is powered by DotNetNuke - please support us and DotNetNuke - DotNetNuke Powered!
© 2008 Smart-Thinker