Change the behaviour on new half-automated page creation
This is more a request about changing things in this Wiki.
Currently if we create a new page as a FeatureRequest or a MoinMoinBugs we are forwarded to one of the both pages.
What we want:
- If we have successfully saved we might want to add further content.
What is the problem?
- We now need to find the page again. This is not easy because new pages are not at the top.
This is easily solved by just logging in. Then you can easily subscribe to that bug page and also find it in your trail.
The problem is caused by newpage action, which uses backto=page parameter for new pages. I don't remember I chose this behavior when the action was written, but it seems wrong most of the times. When you create a page you want to return to the page, not to the page where new page macro was on.
Fix:
--- newpage.py Thu Oct 20 01:05:38 2005 +++ newpage-fix.py Sun Feb 5 18:18:42 2006 @@ -80,7 +80,7 @@ # Redirect to new page using edit action. No error checking # is needed because it is done later in new request. pagename = self.pagename - query = {'action': 'edit', 'backto': self.referrer} + query = {'action': 'edit'} template = self.request.form.get('template', [''])[0] if template:
If the feature is needed, it can be added as another parameter to NewPage macro. -- NirSoffer 2006-02-05 16:20:50
I also would like see a behavior like not jumping back to the origin page (with the form/macro). Maybe we could add an extra paramter like [[NewPage(PageTemplate,ButtonLabel,ParentPage[,NameTemplate,backto=0])]] . For the moment I now use the fix above, thx! -- MarcelHäfner 2007-10-16 22:32:46