<pre>%STARTINCLUDE%<noautolink> authMenu = new QuickMenu.Menu(menuBar,"","","%ICONURLPATH{person}%","%MAKETEXT{"User Authentication"}%"); %IF{"context authenticated" then=' authMenu.Add("%SPACEOUT{%WIKINAME%}%","%SCRIPTURLPATH{view}%/%MAINWEB%/%WIKINAME%","%ICONURLPATH{"home"}%"); authMenu.Add("%MAKETEXT{"Log Out"}%","%IF{"defined LOGOUTURL" then="%LOGOUTURL%" else="?logout=1"}%","%ICONURLPATH{"logout"}%"); ' else=' authMenu.Add("%MAKETEXT{"Log In"}%","%LOGINURL%","%ICONURLPATH{"key"}%"); authMenu.Add("%MAKETEXT{"Register"}%","%SCRIPTURLPATH{view}%/%SYSTEMWEB%/UserRegistration","%ICONURLPATH{"pencil"}%"); '}% </noautolink>%STOPINCLUDE%</pre>
This topic: System
>
QuickMenuBarLogin
Topic revision:
20 Jun 2006, TWiki:Main/VernonLyon
(raw view)
Copyright © CC-BY-SA by the contributing authors. All material on this collaboration platform is copyrighted under CC-BY-SA by the contributing authors unless otherwise noted.
Ideas, requests, problems regarding Foswiki?
Send feedback