Feature #637
Multiple tag selection in taggepages macro.
Description
Related issues
Updated by Haru Iida about 10 years ago
- Status changed from 新規(New) to 解決(Resolved)
- % Done changed from 0 to 100
更新履歴 r143 で適用されました。
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)
}}
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.
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?
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.
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
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
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.