Like me on Facebook Follow me on Twitter Register or    (Why?)
Demo Notes

This example shows all of the standard tokens that can be used within your scripts. Standard tokens are preset and represent both DNN tokens such as Username, Portal etc. as well as intrinsic Inject Anything tokens such as StandardFolder.

In a script you merely reference the tokens inside square brackets and when the output is generated the token is replaced with it's text equivalent.

For example, you could write a script that did something like this:

'Hi [User:DisplayName]' and it would show 'Hi Steve Thompson' (or whatever user is logged in) when output.

You can also create your own custom tokens for use in your scripts to make maintenance and customization easier.

 

Standard DNN Tokens

Inject Anything Specific

  • standardfolder=/DesktopModules/DNNStuff - InjectAnything/standard

Portal

  • portal:url=www.dnnstuff.com
  • portal:portalid=8
  • portal:portalname=DNN Stuff
  • portal:homedirectory=/Portals/8/
  • portal:homedirectorymappath=*******
  • portal:logofile=DNNStuff_Logo.png
  • portal:footertext=Copyright (c) 2004-2015 DNNStuff
  • portal:expirydate=*******
  • portal:userregistration=*******
  • portal:banneradvertising=*******
  • portal:currency=CAD
  • portal:administratorid=*******
  • portal:email=support@dnnstuff.com
  • portal:hostfee=*******
  • portal:hostspace=*******
  • portal:administratorroleid=*******
  • portal:administratorrolename=*******
  • portal:registeredroleid=*******
  • portal:registeredrolename=*******
  • portal:description=DNNStuff creates the best fully supported DotNetNuke modules on the market
  • portal:keywords=dotnetnuke, dnn, dnn module, dnn modules, dotnetnuke module, dotnetnuke tabs, dnn tabs, dotnetnuke module rotator, dnn module rotator, script injector, script injection, free module, sharepoint
  • portal:backgroundfile=
  • portal:siteloghistory=
  • portal:admintabid=*******
  • portal:supertabid=*******
  • portal:splashtabid=*******
  • portal:hometabid=*******
  • portal:logintabid=*******
  • portal:usertabid=*******
  • portal:defaultlanguage=en-US
  • portal:timezoneoffset=
  • portal:version=

Tab

  • tab:tabid=355
  • tab:taborder=*******
  • tab:portalid=8
  • tab:tabname=DNN Token Replacement
  • tab:parentid=*******
  • tab:level=*******
  • tab:iconfile=
  • tab:title=DNN Token Replacement - DNNStuff - Inject Anything
  • tab:description=This demo shows token replacement of standard DNN tokens
  • tab:keywords=
  • tab:url=
  • tab:skinsrc=*******
  • tab:containersrc=*******
  • tab:tabpath=//Modules//InjectAnything//InjectAnything-Demos//DNNTokenReplacement
  • tab:startdate=*******
  • tab:enddate=*******
  • tab:skinpath=*******
  • tab:containerpath=*******
  • tab:fullurl=http://www.dnnstuff.com/modules/inject-anything/inject-anything-demos/dnn-token-replacement
  • tab:refreshinterval=*******
  • tab:pageheadtext=*******
  • tab:authorizedroles=
  • tab:administratorroles=

Module

  • module:portalid=8
  • module:tabid=355
  • module:tabmoduleid=1699
  • module:moduleid=1204
  • module:moduledefid=*******
  • module:moduleorder=*******
  • module:panename=ContentPane
  • module:moduletitle=Standard DNN Tokens
  • module:authorizededitroles=
  • module:cachetime=*******
  • module:authorizedviewroles=
  • module:alignment=left
  • module:color=
  • module:border=
  • module:iconfile=
  • module:authorizedroles=
  • module:header=
  • module:footer=
  • module:startdate=*******
  • module:enddate=*******
  • module:containersrc=*******
  • module:desktopmoduleid=*******
  • module:friendlyname=DNNStuff - InjectAnything
  • module:description=Allows you to inject css, javacsript, vbscript or html content from a variety of sources including the filesystem or directly entered text.
  • module:version=01.03.01
  • module:businesscontrollerclass=DNNStuff.InjectAnything.IPortableController
  • module:modulecontrolid=*******
  • module:controlsrc=*******
  • module:controltitle=
  • module:helpurl=http://wiki.dnnstuff.com
  • module:containerpath=*******
  • module:panemoduleindex=*******
  • module:panemodulecount=*******
  • module:supportedfeatures=*******

User

  • user:affiliateid=
  • user:displayname=
  • user:email=
  • user:firstname=
  • user:lastname=
  • user:portalid=
  • user:userid=
  • user:username=
  • user:fullname=

Membership

  • membership:createddate=
  • membership:lastactivitydate=
  • membership:lastlockoutdate=
  • membership:lastlogindate=
  • membership:lastpasswordchangedate=
  • membership:password=
  • membership:passwordanswer=
  • membership:passwordquestion=
  • membership:email=
  • membership:username=

Profile

  • profile:cell=
  • profile:city=
  • profile:country=
  • profile:fax=
  • profile:firstname=
  • profile:fullname=
  • profile:im=
  • profile:lastname=
  • profile:postalcode=
  • profile:preferredlocale=
  • profile:region=
  • profile:street=
  • profile:telephone=
  • profile:unit=
  • profile:timezone=
  • profile:website=

Date

  • date:current=Thursday, April 27, 2017
  • date:now=4/27/2017 2:59 AM

Ticks

  • ticks:today=636288480000000000
  • ticks:now=636288551659035651
  • ticks:ticksperday=864000000000
Privacy StatementTerms Of UseCopyright (c) 2004-2015 DNNStuff
Page generated in 0.1249966 seconds!