What should happen:
Passing
action=form
to
edit
should put one in page edit mode and hide the text area.
What happens.
Passing
action=form
to
edit
has no effect.
Why this is a problem.
1. The doco says it should. According to
TWiki:TWiki/TWikiScripts#edit
action
Optional. Use the editaction template instead of the standard edit. If action=text, then hide the form. If action=form hide the normal text area and only edit the form.
action=form
does not do this. It has no effect.
action=text
does behave correctly.
2. 'Cos it would be
really cool if it did it. Lots of TWiki apps would be easier if you could hide the textarea this way.
Actually, most of the times it works as it should, and passing
action=form
has the desired effect. To pick an example at random, check out
http://twiki.org/cgi-bin/edit/Codev/QuickCheckListApp
and
http://twiki.org/cgi-bin/edit/Codev/QuickCheckListApp?action=form
.
If it doesn't behave as expected in your installation, then probably there's a problem with your templates. For example, for pattern skin there are three different templates
templates/edit.pattern.tmpl
(for editing without action),
templates/edittext.pattern.tmpl
(for editing with
action=text
) and
templates/editform.pattern.tmpl
(for editing with
action=form
).
So please check out the templates for your skin, and also check whether you have a definition for preference variable called
EDIT_TEMPLATE
. If you are using pattern skin, maybe just re-installing the skin package is sufficient.
HJ
I can confirm that the feature works as it should also here.
Seems to be a skin issue with the reporter and he did not come back in 3 weeks.
Discarding
KJL