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=support@dnnstuff.com
  • 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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值