Search
Other Articles Anywhere questions
Forum

How do I include child-tags when filtering on a parent tag?

Ton van Loon's Avatar Ton van Loon
In J4 it is possible to put child-tags under a parent-tag. How do I include child-tags when filtering on a parent tag?

I tried:

{{article tags="Regisseurs" include-child-tags="true"}}
{{foreach data="tags"}}
[[row:image-intro]]
[[row:title]]
{{/foreach}}
{{/article}}

and:

{{article tags="Regisseurs" include-child-categories="true"}}
{{foreach data="tags"}}
[[row:image-intro]]
[[row:title]]
{{/foreach}}
{{/article}}
Peter van Westen's Avatar Peter van Westen ADMIN
There is currently no support for include-child-tags.
Please post a rating at the Joomla! Extensions Directory
Ton van Loon's Avatar Ton van Loon
I would very much like to have ArticlesAnywhere to support include-child-tags.
Just saying. In the meantime I will be patient.


I want to achieve something similar to this:
{article tag="artforms" include-child-tags="true"}
<h1>Meer ...</h1>
<div> {foreach data="tags" ordering="id DESC"}
<div style="float: left; padding: 0px 20px 10px 0px;"><hr />
<h3>[row:title]</h3>
{articles-others tags:id="[b][row:this:id][/b]" separator="
<p> </p>
"} [link][title][/link]<br /><em> [tags layout="false" links="false" separator=", "] </em><br />{/articles-others}</div>
{/foreach}</div>
{/article}

In words: an article has 3 unknown child-tags, each a child of 3 known parent-tags [artforms, years, directors] and I want to show other-articles that have the 3 child-tags

tag: artforms -> child-tag X -> all other articles with child-tag X
tag: years -> child-tag: 9999 -> all other articles with child-tag 9999
tag: directors -> child-tag: ABCDE -> all other great works from ABCDE

tag: artforms -> child-tag comedy -> all other articles with child-tag comedy
tag: years -> child-tag: 2018 -> all other articles with child-tag 2021
tag: directors -> child-tag: tarantino -> all other great works from tarantino
Peter van Westen's Avatar Peter van Westen ADMIN
I have been looking into this and I will get back to you in a week or so about this.
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases

You should now be able to do:
{article tag="artforms" include-child-tags="true"}
Please post a rating at the Joomla! Extensions Directory
Ton van Loon's Avatar Ton van Loon
Can I use include-child-tags in a foreach structure like below?
{foreach data="tags"   tags:id="33" include-child-tags="true" limit="1" ordering="id DESC"}

Each article has only 1 [unkown] child-tag of the [known] parent-tag:id="33", this is the one I want to select. How do I do that?

I want to show the image of the unkown child-tag:
{article}
{foreach data="tags"   tags:id="33" include-child-tags="true" limit="1" ordering="id DESC"}
<center>[row:image-intro]</center>{/foreach}
{/article}
Peter van Westen's Avatar Peter van Westen ADMIN
No, you can't. The foreach tags loops over the available items of the given type.
So for tags, it will simply loop over the tags attached to the given article.
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