Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  HTML / Text Mo...  Token Replace - Custom Tokens
Previous Previous
 
Next Next
New Post 7/21/2008 3:28 PM
User is offline Kurtis Golding
2 posts
10th Ranked


Token Replace - Custom Tokens 
I was looking for a way to define a custom string replacement token that could be used either at the host or portal level. What I want, and it seems it might be supported, is the ability add a simple name value pair for use with the token replacment engine. For example, adding a value pair wo the web.config in the app setting section, then use that setting value  with the token replacement engine. For example, say I created a new app setting called "CustomText1" with some random value. It would be cool to have be able to use something like "[AppSettings:CustomText1]".  What would be really cool is a way to define portal wide custom token/value pairs within the Text/HTML module..

Anyway, if there is currently a way to do this, I am have not figured it out yet :(

 

Thanks for any help.
 
New Post 7/22/2008 1:07 AM
User is offline Sebastian Leupold
15159 posts
www.deutschnetnuke.de
1st Ranked












Re: Token Replace - Custom Tokens 

general token objects, to be used fo replacements in any place where TokenReplace (TR) is available (currently System Messages, Bulkmail, in DNN 5 Text Skin Object, Text/HTML and several other modules), can only be specified in the core framework. Modules can extend TR by subclassing and use either qualified (like [object:property]) tokens or objectless tokens (like [TEXT]), which can be used in either instance of the module, e.g.  your customized Text/HTML module can provide a admin module to specify portalwide variables and their values, which can be used in any instance of your module in the portal. The easiest way is passing a custom array of strings, when creating the TR, which can be used in tokens as [Custom:1], [Custom:2] etc. Adding any custom object and property names would require the controller to implement IPropertyAccess and declaring a subclass of DotNetNuke.Services.Tokens.BaseCustomTokenReplace including your token object. I am currently working on a more detailed description of token replace, but as usual, this takes some time.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  HTML / Text Mo...  Token Replace - Custom Tokens
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


WDK Solutions
Quality modules for the DotNetNuke community. Check out our 'wild' modules!
wdkns.com
UK - DotNetNuke providers
UK providers of DNN module development and skin package design. Oxford Information Labs provides cost-effective solutions for businesses and organisations specialising in Skin design and bespoke module development.
www.oxil.co.uk
TronixSoft
Hosting for local businesses that want more from their websites.
www.TronixSoft.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP