• 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.

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

ItemTemplate
Summary Edit script does not hide textarea when action=form
ReportedBy TWiki:Main.MarcusLeonard
Codebase 4.0.5
SVN Range TWiki-4.1, Sun, 17 Dec 2006, build 12291
AppliesTo Engine
Component

Priority Normal
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 - 2007-01-14 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback