Tags:
create new tag
, view all tags

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:
Topic revision: r3 - 2008-02-17 - DeanSpicer
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, 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.