プロジェクト

全般

プロフィール

Vote #73449

未完了

More powerful includes

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

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

0%

予定工数:
category_id:
1
version_id:
0
issue_org_id:
13294
author_id:
68130
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Lets say I have project @Standards@ which holds some reusables, like typical sidebars.

If on project X's sidebar I write

{{include(Standards: Sidebar-Common)}}

and if Sidebar-Common itself contains reference to some other macros like:

{{child_pages}}

I will nto get desired result (it will list child pages of its parent in Standards project, rather then that of the project X).

Another example, I have plugin that allows me to have Header, Footer and Stylesheet meta-pages just like Sidebar. If I have wiki page @[[Standards: Header-Common]]@ which holds for example

{{lastupdated_at}}:  {{lastupdated_by}}

and then reference that page from project X's Header as @

マクロ include の実行中にエラーが発生しました (ページが見つかりません)
@ I will get who update page in project Standards, rather then project X.

One possible solution would be to implement another directive, such as @include_recursive@ that will allow macros to reference the calling page, rather then the parent page.

So, this feature allows for propagation of changes to multiple projects that follow some pattern from single project.

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

いいね!0
いいね!0