Similar to view.pattern.tmpl, the edit template should also allow for simple customization, e.g., to put the form on top of the edit screen or to not use or change the help text, etc.
In particular, breaking
%TMPL:DEF{"content"}%
into smaller methods would be a great help.
DEF
content
is the wrapper around the page chunks:
%TMPL:DEF{"content"}%%TMPL:P{"pagetitle"}%
%TMPL:P{"toolbar"}%
%TMPL:P{"pagehelp"}%
%TMPL:P{"formstart"}%
%TMPL:P{"textarea"}%
%TMPL:P{"sig_textareabuttons"}%
%TMPL:P{"edittopicform"}%
%TMPL:P{"topicaction"}%
%TMPL:P{"formend"}%
%TMPL:P{"pagehelp_nojavascript"}%
%TMPL:END%
To remove the help text, empty the
toolbar
,
pagehelp
and
pagehelp_nojavascript
DEFs.
To put the form at the top, change the order in
content
to
%TMPL:DEF{"content"}%%TMPL:P{"pagetitle"}%
%TMPL:P{"toolbar"}%
%TMPL:P{"pagehelp"}%
%TMPL:P{"formstart"}%
%TMPL:P{"edittopicform"}%
%TMPL:P{"textarea"}%
%TMPL:P{"sig_textareabuttons"}%
%TMPL:P{"topicaction"}%
%TMPL:P{"formend"}%
%TMPL:P{"pagehelp_nojavascript"}%
%TMPL:END%
AC
Hmmm. I must have been confused between releases. This is exactly what I would like to have. Thanks, Th. --
TW