This question about Documentation: Answered
How to place a Form above the Text Area when editing
The documentation describes how to change the layout for viewing: System.PatternSkinCustomization#I_want_to_place_the_form_at_the
- although I have given a clearer example below.
However, this does not change the layout for editing, which is potentially more important when using forms.
I am unable to edit the documentation, so have given this example here for others.
If using the pattern skin (default), create your own skin template file for editing: e.g. copy the foswiki/templates/edit.pattern.tmpl to foswiki/templates/edit.myskin.tmpl (where foswiki is the base directory as specified in your configure page).
Edit the bottom of the newly created edit.myskin.tmpl file to appear as follows:
Essentially, the "textarea" line has been moved to the 3rd from bottom line, making it appear at the bottom of the page when editing any page with a form.
In order to use this new skin, enable it for a single Web or across the whole wiki in the relevant WebPreferences
by adding the line (as described in System.PatternSkinCustomization#The_template_approach
* Set SKIN = myskin,pattern
Example of placing Form above Text Area in View mode
Again, to demonstrate using the default pattern skin, create your own skin template file by copying foswikiview/templates/view.pattern.tmpl to foswiki/templates/view.myskin.tmpl
Edit the newly created file view.myskin.tmpl on lines 17 and 18 as follows:
Lines 15 and 16 mention that this setting is deprecated. However, this still appears to carry the "form" setting described in System.PatternSkinCustomization#I_want_to_place_the_form_at_the
Enable myskin for the webs or site you want as above.
- 23 Aug 2009