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

Item5169: Create New Topic, Bypassing Edit Stage

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Low Closed   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

(I know this has been discussed in the Support wwb. I want t be sure it's been officially filed as a request.)

Many times, when I set up a form to create a new page from a template, I don't want the person creating that ppage t d ANY editing of the new topic via the TWiki "edit" page. Instead, I use a template that includes COMMENT plugin sections, Editable tables, buttons, and other content modification magic that will allow the user to update the page without ever clicking edit.

Unfortunately, TWiki doesn't (yet) permit the ability to bypass the initial edit step. Initially, I weas setting action=form (so that the user didn't see anything TO edit) but this was confusing people a ot. So now, I insert a large block comment in te template that says, in effect "Nothing to see here folks. Please move along". That's a pretty lame workaround.

I would prefer one of two options:

  • action=view in the edit script (meaning create the page and don't show either text or form, just save it and take me to the first View screen)
  • a new "create" script so I could do something like
    <form action='%SCRIPTURLPATH{"create"}%/%WEB%/'> 
    ...
    

-- TWiki:Main/VickiBrown - 22 Dec 2007

The save script should support this directly now I think - just replace edit with save in the form.

-- TWiki:Main.SteffenPoulsen - 22 Dec 2007

Sorry, I could not find the topic in the Support web - but creating a new topic without an edit step can actually be done quite easily:

<form action='%SCRIPTURLPATH{"save"}%'>
<input type="hidden" name="templatetopic" value="YourTemplate" />
<input type="hidden" name="onlynewtopic" value="on" />
...
</form>

Are there any features you are missing?

-- TWiki:Main.HaraldJoerg - 22 Dec 2007

Sounds like Harald answered this.

-- KennethLavrsen - 23 Dec 2007

That's perfect. No bug.

-- TWiki:Main.VickiBrown - 27 Dec 2007

ref: TWiki:Support.HowToCreateTopicWithoutEdit

added to TWiki:Support.CreatePageWithoutEdit and TWiki:Support.SkippingEditPage

-- TWiki:Main.VickiBrown - 27 Dec 2007

Cleaned "WaitingFor" field.

-- TWiki:Main.GilmarSantosJr - 10 Aug 2008

ItemTemplate
Summary Create New Topic, Bypassing Edit Stage
ReportedBy TWiki:Main.VickiBrown
Codebase

SVN Range TWiki-4.3.0, Tue, 18 Dec 2007, build 16029
AppliesTo Engine
Component

Priority Low
CurrentState Closed
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2008-08-10 - GilmarSantosJr
 
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