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
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 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.

  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 | Attach | (削除) Watch (削除ここまで) | Print version | History : r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008年02月17日 - DeanSpicer
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.

AltStyle によって変換されたページ (->オリジナル) /