DNNStuff Documentation WikiVisit DNNStuff
RSS

Contents


Tools




Quick Search
»
Advanced Search »

Tag Cloud

Aggregator DNNStuff Inject Anything Module Rotator SQLView Pro Welcome


PoweredBy

Inject Anything Tokens

RSS
Modified on 2010/01/04 15:07 by dnnstuffadmin Paths: InjectAnything Categorized as Inject Anything

Token Use in Inject Anything

What are tokens?

Tokens are keywords enclosed in square brackets [] that are replaced by their accompanying values when the content is injected into the page and rendered.

There are three kinds of tokens supported within Inject Anything:
  1. Native tokens - tokens intrinsic to Inject Anything
  2. DotNetNuke tokens - tokens intrinsic to DotNetNuke
  3. Content tokens - tokens specific to the content being injected

Native Tokens

Native tokens are those that are intrinsic to the Inject Anything module itself.
  • [StandardFolder]
    • inserts the relative path to the /DNNStuff - InjectAnything/standard folder. This token is used in many standard scripts for inclusion of images etc.

DotNetNuke Tokens

In addition to these tokens, which are specific to the Inject Anything module, you can also include any of the standard DotNetNuke tokens.

Content Tokens

Content tokens are tokens that are specific to the content that is being injected. When content is injected, the content is inspected for user tokens and are replaced with the corresponding values.

The values that are used to replace the tokens are entered by the module editor within the module settings.

A content token is any word that is included in square brackets []. You can include as many of these content tokens within your content and you will be prompted for their replacement values in the Inject Anything options screen.

Tokens can optionally include a couple different of attributes which make the value prompting much easier and user friendly.

Optional attributes:
  • Caption - normally the prompt caption for the token is the token name itself, but if you include a caption attribute the options screen will use it instead for the label of the input.
    • Example - [MYTOKEN caption="Token Value"]
  • Help - if you include this attribute the help icon to the left of the label of the input will be populated with your help message.
    • Example - [MYTOKEN caption="Token Value" help="Enter the value of the token"]

Logic Tokens

See Logic Tokens

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam.