• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

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

ItemTemplate
Summary Make edit.pattern.tmpl more customizable
ReportedBy TWiki:Main.ThomasWeigert
Codebase 4.0.0, 4.0.2, 4.0.4, ~twiki4, 4.0.1, 4.0.3, 4.0.5
SVN Range TWiki-4.1, Sat, 18 Nov 2006, build 12001
AppliesTo Extension
Component PatternSkin
Priority Enhancement
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease n/a
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r4 - 2006-11-27 - ThomasWeigert
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback