DotNetNuke Video Tutorials
Nov 11

Written by: Aderson Oliveira
Friday, November 11, 2011 

8 min : 42 sec

Complexity Level: 4 - I'm almost a pro! This video will show how you can use tokens in your DotNetNuke skins so that you can show information about the current user, the current page or the portal directly in the skin without the use of the HTML module. This is part 2 of 2.

Related Links:
- How to use token replacement in DotNetNuke Skins part 1/2 - Video #276
- How to use the token replacement feature in DotNetNuke - Video #14

Text object registration:
<%@ Register TagPrefix="dnn" TagName="TEXT" Src="~/Admin/Skins/Text.ascx" %>

Text object usage:
<dnn:TEXT runat="server" id="dnnTEXT" CssClass="Normal" Text="" ResourceKey="UserName" replaceTokens="True" />

Resource file entry:


<data name="UserName.Text" xml:space="preserve">
<value>[User:Username]</value>
</data>

Portal Tokens
[Portal:Currency]
[Portal:Description]
[Portal:Email]
[Portal:FooterText]
[Portal:HomeDirectory]
[Portal:LogoFile]
[Portal:PortalName]
[Portal:TimeZoneOffset]


User Tokens
[User:DisplayName]
[User:Email]
[User:FirstName]
[User:LastName]
[User:Username]


Membership Tokens
[Membership:Approved]
[Membership:CreatedDate]
[Membership:IsOnline]


Page (Tab) Tokens
[Tab:Description]
[Tab:FullUrl]
[Tab:IconFile]
[Tab:KeyWords]
[Tab:TabName]
[Tab:TabPath]
[Tab:URL]


Date Tokens
[DateTime:Now]


Tick Tokens
[Ticks:Now]
[Ticks:Today]
[Ticks:TicksPerDay]



Do you have a question? Ask on our Forum!

Video Search


Try FREE
30 days money back guaranteed