DDRMenu token templates

This page describes how the DDRMenu token template processor works. Token-based templates are supported in all versions of DNN and provide a simple templating option if the additional programming power of XSLT or Razor are not required.

Table Of Contents [Hide]


%%%%EditSectionPlaceHolder%%%%

Tokens»

The full set of tokens available currently for each menu node (page) are:


You can see an example of the values these take in the output of the DumpXML template).

%%%%EditSectionPlaceHolder%%%%

Directives»

The following directives are available in a token template:


%%%%EditSectionPlaceHolder%%%%

Example»

A very simple example to output an unordered list with relevant classes on the LI elements might look like this:

<ul>
	[*>NODE]
</ul>

[>NODE]
	<li class="[?FIRST]first[/?][?LAST] last[/?][?SELECTED] selected[/?]">
		[?ENABLED]
			<a href="[=URL]">[=TEXT]</a>
		[?ELSE]
			[=TEXT]
		[/?]
		[?NODE]
			<ul>
				[*>NODE]
			</ul>
		[/?]
	</li>
[/>]
For live examples, download the DDR Menu starter templates.

%%%%EditSectionPlaceHolder%%%%

Related content»