Question
Hi Support,
I apologise if this appears to be a trivial question, but I am a newbie. I am using the pattern skin and have removed the leftbar navigation. In doing so I "lost" my Log in/ Log out link. How can I insert the Log in/ Log out link to the view top bar template so it sits alongside the edit, wysiwyg, attach. printable?
Thanks
Environment
--
TWikiGuest - 16 Apr 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Sorry I also forgot to mention that I would like to attach links to the Webs (Main, Sandbox and Twiki).
Thanks
--
TWikiGuest - 16 Apr 2007
Have a look at
WebLeftBarLogin. The html in that topic is customized for the left bar, but you should be able to copy the links:
%IF{"context authenticated" then='%MAKETEXT{"Hello [_1]" args="[[%WIKIUSERNAME%][%SPACEOUT{%WIKINAME%}%]]"}%'}%%IF{"$ LOGOUT != ''" then='%LOGOUT%'}%%IF{"$ LOGIN != '' and not context authenticated" then='%LOGIN% %MAKETEXT{"or"}% [[%TWIKIWEB%.TWikiRegistration][%MAKETEXT{"Register"}%]]'}%
I wouldn't place them next to the Edit and Attach buttons, but in the top bar, above or right to the search box.
--
ArthurClemens - 16 Apr 2007
Hey Arthur, thanks for your reply.
So I should be able to copy the script above and place it in the viewtopbar.pattern.templ?
Sorry if its a trivial question, im a newbie still learning.
Thanks
--
TWikiGuest - 17 Apr 2007
Correct.
--
ArthurClemens - 17 Apr 2007
Arthur, how would I attach the Web links (Main, Sandbox and TWiki).
FYI, I attached the code snipplet above to the viewtopbar.pattern.templ and the links appeared at the bottom of the page after the copyright information!
--
TWikiGuest - 18 Apr 2007
You should put the code for the top bar in TWiki.WebTopBar. That would also be a handy place for your webs.
--
ArthurClemens - 18 Apr 2007
Thanks Arthur it works like a charm.
--
TWikiGuest - 18 Apr 2007