SID-00172: Cannot reset a TMPL:DEF using EDIT_TEMPLATE
| Status: |
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
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.