プロジェクト

全般

プロフィール

Vote #71736

完了

Macros {{child_pages}} with depth parameter

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
56
issue_org_id:
10789
author_id:
3231
assigned_to_id:
1
comments:
9
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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

Admin Redmine さんが約4年前に更新

  • カテゴリText formatting_26 にセット
  • 対象バージョン2.2.0_56 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0