r2 - 05 May 2008 - 19:05:26 - ArthurClemensYou are here: TWiki >  Support Web > HideTopicActionIfTWikiGuest
Tags:
, create new tag

Question

Does anyone know how to hide the actual links in the template viewtopicactions if the user is a twikiguest. I have tried the following. Not sure how if statements are processed at the template level.

in the viewtopicactionsbuttons.tmpl, I try this

%%IF{"$WIKINAME!='TWikiGuest'" then "TMPL:P{"action_revisions"}"}% 
Not sure if the $WIKINAME is visible to templates?

Any help much appreciated.

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Authorisation
-- WillBerger - 05 May 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

See instructions at PatternSkinCustomization.

-- ArthurClemens - 05 May 2008

 
Change status to:
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo