Tags:
create new tag
view all tags

SID-00172: Cannot reset a TMPL:DEF using EDIT_TEMPLATE

Status: Answered Answered TWiki version: 4.2.0 Perl version: 5.008008
Category: CategoryForms Server OS: Linux 2.6.18-53.1.14.el5pae (i386-linux-thread-multi) Last update: 17 years ago

Topic ModOp001 defines VIEW_TEMPLATE and EDIT_TEMPLATE:

   * Set VIEW_TEMPLATE = ModOpView
   * Set EDIT_TEMPLATE = ModOpEdit

ModOpViewTemplate contains these lines:

%TMPL:INCLUDE{"view"}% 
%TMPL:DEF{"formtop"}%%TMPL:END% 
%TMPL:DEF{"formbottom"}%%TMPL:END% 

ModOpEditTemplate contains these lines:

%TMPL:INCLUDE{"edit"}% 
%TMPL:DEF{"changeform"}%%TMPL:END% 

As expected, form table no longer appears at the bottom of the view page.

On the other hand, I was expecting the "changeform" button to be removed from the edit page, but this did not work.

Am I doing something wrong?

-- GregoireLeclair - 06 Mar 2009

Discussion and Answer

If some can access the topic file directly, please put some verbatim tags... Topic can no longer be edited as EDIT_TEMPLATE points toward a non-existing topic!

-- GregoireLeclair - 06 Mar 2009

I figured out how to fix that by copying the above code in the following files:

  • view.modop.tmpl
  • form.modop.tmpl

and setting COVER = modop in ModOp001

-- GregoireLeclair - 07 Mar 2009

      Change status to:
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.
SupportForm
Status Answered
Title Cannot reset a TMPL:DEF using EDIT_TEMPLATE
SupportCategory CategoryForms
TWiki version 4.2.0
Server OS Linux 2.6.18-53.1.14.el5pae (i386-linux-thread-multi)
Web server Apache/1.3.33
Perl version 5.008008
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2009-03-07 - 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.