dnn學習- 常用 token 列表

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

Include Anything Specific

  • standardfolder=/DesktopModules/DNNStuff - InjectAnything/standard

Portal

  • portal:url=www.dnnstuff.com
  • portal:portalid=8
  • portal:portalname=DNN Stuff - Quality DotNetNuke Modules, Unrivaled Support
  • portal:homedirectory=/Portals/8/
  • portal:homedirectorymappath=e:/hosting/member/blvlboy/Portals/8/
  • portal:logofile=DNNStuffLogo.gif
  • portal:footertext=Copyright (c) 2005-2009 DNNStuff
  • portal:expirydate=1/1/0001 12:00 AM
  • portal:userregistration=3
  • portal:banneradvertising=0
  • portal:currency=CAD
  • portal:administratorid=22
  • portal:[email protected]
  • portal:hostfee=0
  • portal:hostspace=0
  • portal:administratorroleid=27
  • portal:administratorrolename=Administrators
  • portal:registeredroleid=28
  • portal:registeredrolename=Registered Users
  • 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=5
  • portal:admintabid=167
  • portal:supertabid=7
  • portal:splashtabid=-1
  • portal:hometabid=166
  • portal:logintabid=-1
  • portal:usertabid=-1
  • portal:defaultlanguage=en-US
  • portal:timezoneoffset=-300
  • portal:version=4.9.1

Tab

  • tab:tabid=355
  • tab:taborder=47
  • tab:portalid=8
  • tab:tabname=DNN Token Replacement
  • tab:parentid=310
  • tab:level=3
  • 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=/Portals/_default/Skins/DNN Stuff/Portal-3Pane.ascx
  • tab:containersrc=/Portals/_default/Containers/Oxygen-Blue/BlueBox-03.ascx
  • tab:tabpath=//Modules//InjectAnything//InjectAnythingDemos//DNNTokenReplacement
  • tab:startdate=1/1/0001 12:00 AM
  • tab:enddate=12/31/9999 11:59 PM
  • tab:skinpath=/Portals/_default/Skins/DNN Stuff/
  • tab:containerpath=/Portals/_default/Containers/Oxygen-Blue/
  • tab:fullurl=http://www.dnnstuff.com/Modules/InjectAnything/InjectAnythingDemos/DNNTokenReplacement/tabid/355/language/en-US/Default.aspx
  • tab:refreshinterval=-1
  • tab:pageheadtext=
  • tab:authorizedroles=;All Users;Administrators;
  • tab:administratorroles=;Administrators;

Module

  • module:portalid=8
  • module:tabid=355
  • module:tabmoduleid=1699
  • module:moduleid=1204
  • module:moduledefid=178
  • module:moduleorder=3
  • module:panename=ContentPane
  • module:moduletitle=Standard DNN Tokens
  • module:authorizededitroles=;Administrators;
  • module:cachetime=0
  • module:authorizedviewroles=;All Users;Administrators;
  • module:alignment=left
  • module:color=
  • module:border=
  • module:iconfile=
  • module:authorizedroles=
  • module:header=
  • module:footer=
  • module:startdate=1/1/0001 12:00 AM
  • module:enddate=1/1/0001 12:00 AM
  • module:containersrc=
  • module:desktopmoduleid=128
  • 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.00.00
  • module:businesscontrollerclass=DNNStuff.InjectAnything.IPortableController
  • module:modulecontrolid=501
  • module:controlsrc=DesktopModules/DNNStuff - InjectAnything/InjectAnything.ascx
  • module:controltitle=
  • module:helpurl=http://wiki.dnnstuff.com
  • module:containerpath=
  • module:panemoduleindex=0
  • module:panemodulecount=0
  • module:supportedfeatures=1

User

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

Membership

  • membership:createddate=1/1/0001 12:00 AM
  • membership:lastactivitydate=1/1/0001 12:00 AM
  • membership:lastlockoutdate=1/1/0001 12:00 AM
  • membership:lastlogindate=1/1/0001 12:00 AM
  • membership:lastpasswordchangedate=1/1/0001 12:00 AM
  • 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=Monday, June 29, 2009
  • date:now=6/29/2009 1:30 AM

Ticks

  • ticks:today=633818304000000000
  • ticks:now=633818358059923750
  • ticks:ticksperday=864000000000
發佈了23 篇原創文章 · 獲贊 0 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章