296. How to use token replacement in DotNetNuke Skins part 1/2 - Video #276
  1. 8m 24s
    Nov 07, 2011
General Lesson

8 min : 24 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 1 of 2.

Related Link:
- How to use token replacement in DotNetNuke Skins part 2/2 - Video #277
- 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]


Author:
Aderson Oliveira

About General Course

5h 47m 7s All Jan 01, 2014

General Course

Author:
Aderson Oliveira
Back

Try FREE
30 days money back guaranteed