Project

General

Profile

Feature #637

Multiple tag selection in taggepages macro.

Added by Haru Iida about 10 years ago. Updated about 10 years ago.

Status:
終了(Closed)
Priority:
通常(Normal)
Assignee:
Target version:
Start date:
12/10/2010
Due date:
% Done:

100%

Estimated time:

Description

Error executing the taggedpages macro (undefined method `id' for nil:NilClass)


Related issues

Related to Wiki Extensions - Proposal #617: Include optional project parameter for listing tags終了(Closed)Haru Iida10/27/2010

Actions
#1

Updated by Haru Iida about 10 years ago

  • Status changed from 新規(New) to 解決(Resolved)
  • % Done changed from 0 to 100

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

#2

Updated by Haru Iida about 10 years ago

  • Status changed from 解決(Resolved) to 終了(Closed)
#3

Updated by FLX FLX about 10 years ago

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

#4

Updated by Haru Iida about 10 years ago

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.

#5

Updated by FLX FLX about 10 years ago

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?

#6

Updated by Haru Iida about 10 years ago

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.

#7

Updated by FLX FLX about 10 years ago

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

#8

Updated by FLX FLX about 10 years ago

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

#9

Updated by Haru Iida about 10 years ago

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.

#10

Updated by FLX FLX about 10 years ago

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

Also available in: Atom PDF