Vote #71736
完了Macros {{child_pages}} with depth parameter
0%
説明
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)}}
journals
Ohmmm... sorry!
--------------------------------------------------------------------------------
Up!
--------------------------------------------------------------------------------
Please, apply this patch to 2.1.0. Usefull for big Wikis. Backward compatible.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Please do not assign issues directly.
--------------------------------------------------------------------------------
Missed JPL update.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
Option added in r10401.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
duplicates,Closed,3962,Add a maximum nesting option to the {{child_pages}} macro