Feature #10789

Macros {{child_pages}} with depth parameter

Added by Alexander Oryol over 5 years ago. Updated about 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Text formatting
Target version:2.2.0
Resolution:Fixed

Description

The default behaviour of child_pages is two levels nesting.
It strongly restrict applicability of macros.

This small patch adds optional parameter depth with default value = 2.

{{child_pages(Foo, parent=1, depth=3)}}

child_pages_with_depth.patch Magnifier (2.31 KB) Alexander Oryol, 2012-04-27 11:03

child_pages_with_depth1.patch Magnifier (2.31 KB) Alexander Oryol, 2012-04-27 11:17


Related issues

Duplicated by Redmine - Patch #3962: Add a maximum nesting option to the {{child_pages}} macro Closed 2009-10-02

Associated revisions

Revision 10401
Added by Jean-Philippe Lang about 5 years ago

Adds a "depth" option to the child_pages macro (#10789).

Revision 10402
Added by Jean-Philippe Lang about 5 years ago

Updates macro description (#10789).

History

#1 Updated by Alexander Oryol over 5 years ago

Ohmmm... sorry!

#2 Updated by Alexander Oryol about 5 years ago

Up!

#3 Updated by Alexander Oryol about 5 years ago

  • Assignee set to Jean-Philippe Lang

Please, apply this patch to 2.1.0. Usefull for big Wikis. Backward compatible.

#4 Updated by Jean-Philippe Lang about 5 years ago

  • Target version set to 2.2.0

#5 Updated by Etienne Massip about 5 years ago

  • Assignee deleted (Jean-Philippe Lang)

Please do not assign issues directly.

#6 Updated by Etienne Massip about 5 years ago

  • Assignee set to Jean-Philippe Lang

Missed JPL update.

#7 Updated by Jean-Philippe Lang about 5 years ago

acts_as_tree#descendants was not supposed to return 2 levels only. It was fixed in 2.1.0 (r10142) so now it returns all levels. The depth option will be added in 2.2.0.

#8 Updated by Jean-Philippe Lang about 5 years ago

  • Status changed from New to Closed
  • Resolution set to Fixed

Option added in r10401.

#9 Updated by Go MAEDA over 2 years ago

  • Duplicated by Patch #3962: Add a maximum nesting option to the {{child_pages}} macro added

Also available in: Atom PDF