r3 - 17 Feb 2008 - 21:22:15 - DeanSpicerYou are here: TWiki >  Support Web > HowToHideReplaceFormButton
Tags:
, create new tag

Question

Is there a way I can hide the "Replace form..." button when users are editting certain pages? The topic is created with an html form and the appropriate form is attached at this time. I don't want users to be able to change the form.

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux (Debian Etch)
Web server: Apache 2.2.3
Perl version: 5.8.8
Client OS: MS Windows 2000/XP
Web Browser: Firefox
Categories: Forms
-- DeanSpicer - 17 Feb 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.

  1. Create a file in folder templates: form.noreplace.tmpl
  2. Write in that file:
    %TMPL:INCLUDE{"form"}%
    %TMPL:DEF{"changeform"}%%TMPL:END%
    
  3. Set for the topic the cover to noreplace. Either as a TWiki variable Set COVER or by url parameter &cover=noreplace

-- ArthurClemens - 17 Feb 2008

Thanks Arthur, that's exactly what I needed.

-- DeanSpicer - 17 Feb 2008

 
Change status to:
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < 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