Picture of My Tokens 5 - Custom DNN Tokens (with Razor Support)

My Tokens 5 - Custom DNN Tokens (with Razor Support)

posted by DNN Sharp - 04/03/2018

Automation and Integration with Custom DNN Tokens

Everybody needs tokens. My Tokens connects data to DNN modules. For example, pull content from Database table or a Web Service into HTML modules, being very useful for achieving seamless integration between otherwise isolated components. Imagine possibilities!


This product will not be offered for sale as a separate product after September 30, 2021. It is incorporated into our AppBuilder platform, which is the next generation of our DNN Sharp products. It combines the power of all of our products to provide a full environment for Low-Code development. If you are interested, we’ll be happy to discuss how you can learn more about the new product and the migration path from individual DNN Sharp tools.


Easily personalize content for visitors

Power Users

Pull data together to build dynamic content.

.NET Developers

Expose data for content editors to use


DNN: See Compatibility Matrix SQL Server 2012+ ASP.NET 4.5.2+ IIS 7.0+ Plant an App/AppBuilder

Powerful Features That Put You In Control

  • Extends Existing Tokens

    My Tokens inherits all token sources available in DNN (Host, Portal, User, Membership, Profile, Tab, Module, DateTime, Ticks).

  • New Predefined Tokens

    Application, ServerVars, Session, Cookie, Get, Post, Params, UserRoles, URL, NavigateURL, Random, HttpContextItems, Browser

  • Razor Support (C# and VB.NET)

    Once with 2.0, My Tokens supports Razor scripts so it's now possible to write complex templates with loops and conditions.

  • Gadgets Interface

    My Tokens provides XML mechanism to define gadgets, that are tokens that result in embedding some 3rd party controls on the page. It comes with gadgets for embedding YouTube videos, Facebook Like button, Disqus, and much more.

  • Inline Script Support

    Normally, Razor and Spark templates are built from My Tokens studio the later used in modules (such as HTML module). But it also support writing the templates directly in the content.

  • Tokens That Persist

    Special Tokens that get their value from page state and save it in cookies or session so after page state is lost the token maintains its value.

  • Spark Support

    Same as Razor, Spark is an engine capable of building complex templates. The main difference between the two is Spark is more HTML friendly, a lot of it syntax happens inside tags.

  • Custom Tokens

    Create new tokens as constant strings or built against Database, HTTP Server, FTP Servers or Mail Servers. Further processing of result is possible with use of Parsers.

  • HTTP Tokens

    My Tokens will make an HTTP Request and put the response in tokens. Using the parsers, the response can be interpreted as text, json, xml or stripped using a regular expression.

  • Database Tokens

    Will run a query and fetch the results in tokens that can be used in any My Tokens aware module.

  • FTP Tokens

    These tokens are built from a file loaded from a FTP Server. How they are extracted depends on parsers and rules used.

  • File System Tokens

    These tokens are built from a file loaded from disk. Paths can be specified absolute or relative to website root.

  • Mail Server Tokens

    My Tokens can connect to a Mail Server using POP3 or IMAP and fetch email parts (subject, body, to, from, attachment). Currently, it's only possible to retrieve latest email; filters will be added to match emails.

  • Token Parsers

    Once data is returned from the Token Source, further processing is made with use of Parsers. My Tokens comes with following parsers: No Parser (data is left as it is), Strip Xml/Html tags, XML Parser, Json Parser and RegExp Parser.

  • Patch Standard Modules

    MyTokens will automatically patch some standard modules (even if they're installed after MyTokens). Supported modules are: Text/Html, Links, Announcements, Reports, Documents, User Defined Table, Form and List, IFrame, MLHTML.

  • Token Replacement in DNN Skin

    My Tokens provides a Skin Object that will replace tokens in Skin Files. In general, it can be included in any .ascx or .aspx file.

  • Advanced Caching Strategies

    My Tokens provides several configurable layers for caching tokens. There are: global (per host), per portal, per role and per user.

Application Screenshots
Gadgets Settings
Google Map Gadget
My Tokens Support
News Gadget
New Token Settings
Security Settings

Related Modules
DNN Presentations Easy As 1, 2, 3
DNN Presentations Easy As 1, 2, 3

Use Dynamic Rotator .NET to show off content and pictures with class or to present ideas and products professionally to potential customers.

Struggling to Create Custom DNN Forms?
Struggling to Create Custom DNN Forms?

Action Form is the most powerful yet easy to use custom form builder available for DNN. It's Responsive too!

DNN Containers on the Fly
DNN Containers on the Fly

Easy Container helps build rich DNN containers at a click of a mouse with live preview! Cut the middle man and increase productivity!

Fully Featured DNN FAQ Functionality
Fully Featured DNN FAQ Functionality

Provide your users with a well-designed and informative FAQ section using FAQ Master. It's the easiest and most modern FAQ solution for DNN. It's takes minutes!

Highly Customizable DNN Menus
Highly Customizable DNN Menus

NavXp gives you full control over layout, hierarchy and appearance. Build any DNN menu you can think of in minutes!

Segmentation and Workflows for DNN
Segmentation and Workflows for DNN

Redirect toolkit has got them all: user redirects, roles redirects, mobile redirects, variable redirects, random A/B testing redirects and a dozen more.

Feature-packed DNN Search Engine
Feature-packed DNN Search Engine

Search Boost has been often said to be light years ahead of any other search engine. Make sure you are not losing customers because they can't find what they're looking for.

A Proper Task Scheduler for DNN
A Proper Task Scheduler for DNN

If you need to automate system maintenance or administration tasks on your DNN portal, Sharp Scheduler is your ticket!

Really Modern Looking DNN Tabs
Really Modern Looking DNN Tabs

Tabs Pro comes with clean and responsive themes that will also play nicely with CDNs. Fast and simple to configure!

Ultimate DNN SEO URL Rewriter
Ultimate DNN SEO URL Rewriter

URL Adapter takes on some rather complex concepts such as usability, SEO or redirect workflows and builds a new interface that Everyone can understand!

Ridiculously Good-looking Grids For DNN Data-rich Applications
Ridiculously Good-looking Grids For DNN Data-rich Applications

Action Grid enables the integration of powerful tables from multiple sources into DNN projects, providing a simple, yet flexible means of displaying data in a tabular format.

DNN API Endpoint
DNN API Endpoint

DNN API Endpoint was born to create an easy-to-use and well-tested framework for building REST APIs to help support applications that live especially outside of DNN.

Lost for Choice?

Get them all by choosing Plant an App!


When it comes to support we pride ourselves on going the extra mile for our clients. One of the greatest joys we get is the awesome stuff we see based on the concerted effort of both our clients and ourselves. With dedicated support staff at your back, you can be sure that you will get your DNN portal up and running without a hitch.