プロジェクト

全般

プロフィール

Feature #637

完了

Multiple tag selection in taggepages macro.

Haru Iida さんが13年以上前に追加. 約13年前に更新.

ステータス:
終了(Closed)
優先度:
通常(Normal)
担当者:
対象バージョン:
開始日:
2010/12/10
期日:
進捗率:

100%

予定工数:

説明

マクロ taggedpages の実行中にエラーが発生しました (undefined method `id' for nil:NilClass)


関連するチケット 1 (0件未完了1件完了)

関連している Wiki Extensions - Proposal #617: Include optional project parameter for listing tags終了(Closed)Haru Iida2010/10/27

操作

Haru Iida さんが13年以上前に更新

  • ステータス新規(New) から 解決(Resolved) に変更
  • 進捗率0 から 100 に変更

更新履歴 r143 で適用されました。

Haru Iida さんが13年以上前に更新

  • ステータス解決(Resolved) から 終了(Closed) に変更

FLX FLX さんが13年以上前に更新

Great! But I can't get it working :(
Syntax: {{taggedpages(Tag1[,Tag2], Project)}}
Example: {{taggedpages(Featured[,Project], Notebook)}}

Haru Iida さんが13年以上前に更新

FLX FLX は書きました:

Great! But I can't get it working :(
Syntax: {{taggedpages(Tag1[,Tag2], Project)}}
Example: {{taggedpages(Featured[,Project], Notebook)}}

You don't have to write '[' and ']'.
You should write like {{taggedpages(Featured,Project,Notebook)}}.

'[]' means optional arguments.

FLX FLX さんが13年以上前に更新

There are two articles in my project Notebook:
I have ArticleA tagged as Featured and Project.
I have ArticleB tagged as Featured and Application.
However, when using {{taggedpages(Featured,Project,Notebook)}} it lists both ArticleA and ArticleB, even though it should only list ArticleA.

Can you confirm that this happens for you as well?

Haru Iida さんが13年以上前に更新

FLX FLX は書きました:

There are two articles in my project Notebook:
I have ArticleA tagged as Featured and Project.
I have ArticleB tagged as Featured and Application.
However, when using {{taggedpages(Featured,Project,Notebook)}} it lists both ArticleA and ArticleB, even though it should only list ArticleA.

Can you confirm that this happens for you as well?

Oh, You want to list pages that have both Featured and Project tags?
This macro lists pages that have Featured or Project. Sorry.

FLX FLX さんが13年以上前に更新

Hmmm, before the latest update to this it worked perfectly as AND operator. Any chance of bringing this back? Seems more logical :)

FLX FLX さんが約13年前に更新

Hey Haru Iida,

Have you given my last suggestion any thought? I think it would be more logical by using the AND operator as most tag listing functions always do :)

Thanks!
Dennis

Haru Iida さんが約13年前に更新

OK. I have implemented at r168.
If you specify "and" at first argument, it works as "and" operator.

{{tagged_pages(and, tag1, tag2, tag3, project)}}

If you don't specify "and", it works as "or" operator.

FLX FLX さんが約13年前に更新

Awesome, works great! You can close the ticket :D

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