Tags:
create new tag
view all tags

Question

Is there a way to disable the Action Bar or hide it from guest users?

Environment

TWiki version: TWikiRelease04x00x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS: Win XP
Web Browser: Explorer
Categories: Installation, Documentation, Skin

-- SeanMcCloskey - 04 Apr 2006

Reasoning

I know this goes against the whole TWiki environment, so let me explain what we are trying to do.

We are in the process of revamping out support website. The idea is we want to be able to do quick edits to our site at any given time with great flexibility. We don't want end users to be able to leave hate mail all over our site, so we want to limit access to just Support Agents or myself, maybe the web development guys but CS is usually the bastard child of every company so we should be left well alone.

One of the concerns from upper management is the "Edit Attach" featured of the Action bar both at the top and bottom.

I have searched high and low trying to figure out how to make this disappear, or at the least only appear to people who have access to see it. I haven't found anything, and I spent hours searching. I just now found the name of the thing I was trying to change. smile

So to rephrase the question is there a way we can make this bar either disappear completly, or only appear to the people who have access? If the only solution is to make it disappear, how would one go about editting the pages without this feature?

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.

Yes. Pretty easy.

Either edit the main skin or use a lcoal VIEW_TEMPLATE.

You can see in the view.patern.tmpl examples of building condtionals.

You then have a contruct something like:

   %TMPL:P{context="authenticated" then="toolbar_edit" }
Notice there is no else clause.

You can also make this dependant on higher level features using the %IF{}% mechanism

Finally, you can make a "Contnet management system" by having a 'normal' skin that has not buttons and can only be viewed, and a 'editors' skin tha does have the buttons for editing. The system default is the 'normal' skin, defined in TWikiPreferences. The editor accounts have this overridden in their home topic.

-- AntonAylward - 04 Apr 2006

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-04-06 - PeterThoeny
 
  • 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.