Articles Anywhere

Filter multiple nested articles by current article

4 months 4 weeks ago #89314

Octav A's Avatar Octav A

Hello again,
I am using nested articles to nest multiple set of articles and it works great.

{articles category="Main" id="this:name"}
{articles-nested1 category="First" custom_field1="[main_article_custom_field]"}
{articles-nested2 category="Second" custom_field2="[second_article_custom_field]" limit="3"}
[link][title][/link]
{/articles-nested1}
{/articles-nested2}
{/articles}
This is very nice but i need to apply one more filter to second set (articles-nested2) by Current Article custom_field something like this:
{articles-nested2 category="Second" custom_field2="[second_article_custom_field]" custom_field3 = "this:custom_field_3" limit="3"}
.
Is it possible? If it is - i am very happy.

4 months 4 weeks ago #89325

Peter van Westen's Avatar Peter van Westen Admin

Not sure what you expect the 'this' to to refer to...

4 months 3 weeks ago #89399

Octav A's Avatar Octav A

By "this" I mean the current article where {articles}{/articles} are displayed.

4 months 3 weeks ago #89402

Peter van Westen's Avatar Peter van Westen Admin

Yes, that should work.
See: www.regularlabs.com/extensions/articlesa...from-current-article

Make sure your syntax is on point.
So:

custom_field3="this:custom_field_3"
And not with extra whitespace:
custom_field3 = "this:custom_field_3"