• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc
Show / Hide Table of Contents

Login Theme Object Introduction

DNN Version: 09.02.00
10/02/2024 • 1 minute to read
Contributors  Timo-Breumelhof
10/02/2024  • 1 minute to read  • Contributors  Timo-Breumelhof

Dual state control – displays “Login” for anonymous users and “Logout” for authenticated users.

Current Version: 01.00.00

Include in Theme

ASCX

<%@ Register TagPrefix="dnn" TagName="Login" Src="~/Admin/Skins/Login.ascx" %>  
<dnn:Login runat="server" id="dnnLogin" />

HTML Token

[LOGIN]

HTML Object Token

<object id="dnnLOGIN" codetype="dotnetnuke/server" codebase="LOGIN"></object>
Attribute Description Default Posssible Values DNN Version
Text The text of the login link Login String 01.00.00
CssClass SkinObject Valid CSS Class String 01.00.00
LogoffText The text of the logoff link Logoff 01.00.00

Examples:

Default

<dnn:Login runat="server" id="dnnLogin" />

Text and CSS Class

<dnn:Login runat="server" Text="Knock knock" LogoffText="Let me out!" CssClass="my-login" id="dnnLogin" />
Theme ObjectsAbout ThemesCreating Themes
Back to top by the community, for the community... #DNNCMS