Feature #3108
set parent automatically for new pages
| Status: | New | Start: | 2009-04-02 | |
|---|---|---|---|---|
| Priority: | Low | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | Wiki | |||
| Target version: | - | |||
| Resolution: |
Description
There is a regular way to create new wiki pages is by adding a link to non-existing page and than click this link. As for now after saving new page the parent field is empty.
It will be great if parent page will be the previous one (the page that we come from) by default.
History
Updated by Mischa The Evil over 1 year ago
Vlad Ershov wrote:
[...] As for now after saving new page the parent field is empty.
It will be great if parent page will be the previous one (the page that we come from) by default.
This seems a great option to me, though I don't think it should be the default option. I rather would like it to be implemented as another option along the "Submit" and "Preview" control-elements. Like the implementation of the "Create" and "Create and continue" controls when creating new issues...
Updated by Jean-Philippe Lang over 1 year ago
- Tracker changed from Defect to Feature
Updated by Eric Davis over 1 year ago
I agree with Mischa, making it the default option can cause a user to create a deep wiki without them knowing. For example:
homepage
|_ Page one
|_ Page two
|_ Page three
Updated by Jean-Baptiste Barth about 1 year ago
- File 3108_automatic_parent.diff added
See attached file for a proposal. But maybe it would be better to let administrators at project level decide if parent page is set automatically or not by default. Or even decide that parent page is set automatically "below X levels" in the hierarchy.. Any thought about this ?
Updated by Jean-Baptiste Barth about 1 year ago
- File 3108_automatic_parent_2.diff added
- button visible only parent parameter can be set
- better place for @page modification
Updated by Jean-Baptiste Barth about 1 year ago
- File deleted (
3108_automatic_parent.diff)
Updated by Jean-Baptiste Barth about 1 year ago
- File 3108_automatic_parent_with_tests.diff added
Third version with some functional tests and a bug fixed (buggued preview with the previous one). Maybe I will find other bugs in the next days, let me know if you find some...
Updated by Jean-Baptiste Barth about 1 year ago
- File deleted (
3108_automatic_parent_2.diff)