Feature #10789
closed
Macros {{child_pages}} with depth parameter
Added by Alexander Oryol over 12 years ago.
Updated almost 12 years ago.
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
- Assignee set to Jean-Philippe Lang
Please, apply this patch to 2.1.0. Usefull for big Wikis. Backward compatible.
- Target version set to 2.2.0
- Assignee deleted (
Jean-Philippe Lang)
Please do not assign issues directly.
- Assignee set to Jean-Philippe Lang
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.
- Status changed from New to Closed
- Resolution set to Fixed
- Has duplicate Patch #3962: Add a maximum nesting option to the {{child_pages}} macro added
Also available in: Atom
PDF