Articles Anywhere

Filter articles by tag id?

3 months 3 weeks ago #89751

Octav A's Avatar Octav A

Hello,
I could not find info about this in tutorial. Please advise if possible to filter by tag id not title. Thanks

3 months 3 weeks ago #89754

Peter van Westen's Avatar Peter van Westen Admin

Have you tried?

Just like with the article and category filters, you can either use the name or the ID.

3 months 3 weeks ago #89757

Octav A's Avatar Octav A

Of course i tried and it seems not to work. But now i tried with alias (which is actually better for me) and seems to work. It is good enough.
However this filter does not work

{if tags = 'tag1'} text1 {else} text2 {/if}
Pleaese confirm is such filter may be used

3 months 3 weeks ago #89758

Peter van Westen's Avatar Peter van Westen Admin

Ah, that is an if condition, not a filter.

3 months 3 weeks ago #89759

Octav A's Avatar Octav A

Peter van Westen wrote:

Ah, that is an if condition, not a filter.
Yes it is, sorry i am not native english. So should such condition work?

3 months 3 weeks ago #89762

Peter van Westen's Avatar Peter van Westen Admin

No, it isn't possible to use the tag ids in the if conditions.
Also the alias doesn't work. Well, only if it is the same as the tag nam (but lowercase).