Tags:
create new tag
, view all tags

Question

IF WIKIUSER=Main.TWikiGuest, I do not want to show the menu of topic actions. Otherwise, I know a user is logged in and I do want it to show.

I understand the template system and have customized well enough, but do not understand Perl commands necessary to make the display of topicactions conditional. I want to write a new item "topicaction2" in view.pattern.tmp. Then, in twiki.pattern.tmpl, where it now says

%TMPL:P{"topicaction"}%
I want something that forks, so TWikiGuest sees
%TMPL:P{"topicaction2"}%
and other users see the other one.

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Compac/Digital OSX
Web server: Apache
Perl version: 5.8
Client OS: Linux
Web Browser: Mozilla

-- PaulJohnson - 18 Oct 2004

Answer

use the SpreadSheetPlugin; see HideControlsFromNonAuthenticatedUsers for more info

-- WillNorris - 18 Oct 2004

Topic revision: r3 - 2004-10-19 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.