Search
Other Articles Anywhere questions
Forum

Using 'current' inside tags for filtering

Gerd's Avatar Gerd
I have been using AA Pro with Joomla 3 showing a 'related articles' (module) next to an article based on matching tags.

In Joomla 3 the module content looked like this (category 53 is a library of related help articles):
<ul>{articles categories="53" tags="current" ordering="title"}
<li>[link][title][/link]</li>
{/articles}</ul>

When an article would e.g. contain the tags a,b,c,d it would show (alongside) a list of articles from category 53 where each article was tagged with at least one of these 4 tags.

I tried a few variations including using tags="this:tags", but they all returned empty.

Which syntax for filtering do I have to apply in Joomla 4 to get the same results as in Joomla 3?
Andrea Malalana's Avatar Andrea Malalana ADMIN
Yeah, looks like the 'current' option has some issues at the moment. We'll update soon with a fix.
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Gerd's Avatar Gerd
Thanks for the quick turn around.

I tested a bunch of use cases with the following results

Article Anywhere logic
{articles categories="53" tags="current"}

I set-up category 53 articles as following:
article 1 tagged a
article 2 tagged b
article 3 tagged c
article 4 tagged d,x,y

Use Cases:
Main Article tagged: a,b ==> CORRECT
Main Article tagged: a,z ==> CORRECT
Main Article tagged: a ==> CORRECT
Main Article tagged: a,x ==> CORRECT
Main Article tagged: a,b,z ==> CORRECT

For the use cases above I also tested:
{articles categories="53" tags="current,y"} ==> CORRECT
{articles categories="53" tags="!current"} ==> CORRECT

The only case that didn't work was
{articles categories="53" tags="!current,b"} ==> I think this should always have included article 2 (as tagged with b).


I didn't test {.... tags="current+b"} as I wasn't sure this (the +) is even supported.
Peter van Westen's Avatar Peter van Westen ADMIN
the tags="!current" doesn't work correctly yet. I will look into this at a later stage. It is not an easy fix at this point.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription