Project

General

Profile

Actions

Feature #10789

closed

Macros {{child_pages}} with depth parameter

Feature #10789: Macros {{child_pages}} with depth parameter

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

Status:
Closed
Priority:
Normal
Category:
Text formatting
Target version:
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)}}

Files

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

Related issues 1 (0 open — 1 closed)

Has duplicate Redmine - Patch #3962: Add a maximum nesting option to the {{child_pages}} macroClosedActions

Updated by Alexander Oryol about 14 years ago Actions #2

Up!

Updated by Alexander Oryol about 14 years ago Actions #3

  • Assignee set to Jean-Philippe Lang

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

Updated by Jean-Philippe Lang about 14 years ago Actions #4

  • Target version set to 2.2.0

Updated by Etienne Massip about 14 years ago Actions #5

  • Assignee deleted (Jean-Philippe Lang)

Please do not assign issues directly.

Updated by Etienne Massip about 14 years ago Actions #6

  • Assignee set to Jean-Philippe Lang

Missed JPL update.

Updated by Jean-Philippe Lang about 14 years ago Actions #7

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.

Updated by Jean-Philippe Lang about 14 years ago Actions #8

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

Option added in r10401.

Updated by Go MAEDA over 11 years ago Actions #9

  • Has duplicate Patch #3962: Add a maximum nesting option to the {{child_pages}} macro added
Actions

Also available in: PDF Atom