Project

General

Profile

Actions

Feature #3108

closed

set parent automatically for new pages

Added by Vlad Ershov almost 15 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Low
Category:
Wiki
Target version:
Start date:
2009-04-02
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

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.


Files

3108_automatic_parent_with_tests.diff (6.82 KB) 3108_automatic_parent_with_tests.diff Jean-Baptiste Barth, 2009-05-24 21:45
parent_page.png (1.9 KB) parent_page.png Jean-Philippe Lang, 2011-12-17 12:49

Related issues

Related to Redmine - Feature #6449: Edit a wiki page's parent on the edit pageClosedJean-Philippe Lang2010-09-21

Actions
Has duplicate Redmine - Feature #6654: Make new wiki page as a child to page from whitch it was created by linkClosed2010-10-13

Actions
Actions #1

Updated by Mischa The Evil almost 15 years 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...

Actions #2

Updated by Jean-Philippe Lang almost 15 years ago

  • Tracker changed from Defect to Feature
Actions #3

Updated by Eric Davis almost 15 years 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
Actions #4

Updated by Jean-Baptiste Barth almost 15 years 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 ?

Actions #5

Updated by Jean-Baptiste Barth almost 15 years ago

  • File 3108_automatic_parent_2.diff added
Tiny update:
  • button visible only parent parameter can be set
  • better place for @page modification
Actions #6

Updated by Jean-Baptiste Barth almost 15 years ago

  • File deleted (3108_automatic_parent.diff)
Actions #7

Updated by Jean-Baptiste Barth almost 15 years ago

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

Actions #8

Updated by Jean-Baptiste Barth almost 15 years ago

  • File deleted (3108_automatic_parent_2.diff)
Actions #9

Updated by Terence Mill over 13 years ago

+1 for that feature
I agree with Mischa

Actions #10

Updated by Jean-Philippe Lang about 12 years ago

  • File parent_page.png parent_page.png added
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Target version set to 1.4.0
  • Resolution set to Fixed

Feature added in r8255. I added a checkbox instead of a new submit button, so this can be changed later to a regular field for parent page selection (#6449).

Just check the check box when creating the page:

Actions

Also available in: Atom PDF