Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows XP Pro SP2
Web server: Apache 1.3.37
Perl version: Perl 5.8.7
Client OS: Windows XP Pro SP2
Web Browser: IE7
Categories: Registration, Authentication, Authorisation, Missing functionality, Skin

-- TWikiGuest - 16 Apr 2007

Answer

ALERT! 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

Change status to:
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2007-04-18 - TWikiGuest
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.