Search
Other Articles Anywhere questions
Forum

Filter By a Subform field

Vinny Hebert's Avatar Vinny Hebert
I'm trying to use Articles Anywhere to list the episodes an actor or a crew member (different subforms) are listed in. I have a subform "Cast" that contains "character" (text) and "actor" (articles). I'm trying to filter base on categories && [cast]="this:id" but it's never going to be equal so is there a CONTAINS function?

Now, you'll probably point out that if I have the Pro version of the articles plugin, which I do, that I can use the artcleslinked plugin. Which is probably the way I should do this. However, I'm using YooTheme and I can't figure out how to call the info from that field cause it displays it as "Name of Field" - Count
Peter van Westen's Avatar Peter van Westen ADMIN
Have you tried:
cast="this:id"
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
It was one of the first I've tried. I've tried a variety of different things.
Peter van Westen's Avatar Peter van Westen ADMIN
Ah, only now do I fully realize this is a Subform field (like in the title!). So a nested field.
No, Articles Anywhere cannot filter on fields within subform fields.
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
Does the articleslinked plugin work with subfomrs?
Peter van Westen's Avatar Peter van Westen ADMIN
Yes, it can show articles that link to it from an Articles Field in a subform.
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
I'm having difficulties displaying the articles linked field. How do I call it from the article template (I'm using YooTheme)? I've always had trouble with this particular functionality.
Peter van Westen's Avatar Peter van Westen ADMIN
Using Articles Anywhere?

Otherwise: you'll have to ask YooTheme about this.
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
I'm mostly using Article Anywhere anyway. HTML field and run AA. So this is not a YooTheme thing.
{articles category="Episodes,Special,Vintage Radio Club"  ordering="original-air-date ASC"}
    
    <li>[episodes-cast]</li>{/articles}

[episodes-cast] is the articleslinked field. Just getting a bunch of blank lines

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Can you reproduce the issue on a clean website not using YooTheme stuff?
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
I switched templates to Cassiopeia and it published the list of episodes using the custom field display option (so now I know that the field does work) but when I used the Articles Anywhere code it just listed the blank <li> tags.

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Can you give me (super) admin and (s)ftp access so I can take a look?
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
I haven't deactivated your account from the Advanced Modules Issue.
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
I would also need the (s)ftp access...
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
The output is as expected:
The "episodes-cast" field is only available on articles in the "Cast & Crew" category.

You are telling Articles Anywhere to output all articles in these categories: Episodes, Special, Vintage Radio Club
So not in the "Cast & Crew" category!

Then for every article output the "episodes-cast" field in a list item.
Seeing none of those articles have the "episodes-cast" field, it outputs nothing.
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
So I changed the Category (I'm so dumb sometimes) and viola! articles appeared, however it's every article, not just the one with that actor.

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Correct, as expected.
Either use filters, if structures or custom html overrides for the field.

Please read the docs to understand how Articles Anywhere works:
docs4.regularlabs.com/articlesanywhere
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
I thought putting the articleslinked field would just list the Episodes that the article (Actor) is linked to, not everyone.
Peter van Westen's Avatar Peter van Westen ADMIN
No, you are doing this:
{articles category="Episodes,Special,Vintage Radio Club" ordering="original-air-date ASC"}
<li>...</li>
{/articles}
That will output '<li>...</li>' for every article returned by the {articles} tag (based on your filters).
You have no condition in there to tell it to only output articles that have an output through the [episodes-cast] field.

Also, the [episodes-cast] field is an "Articles Linked" field, that in it's raw value only has a true/false value (whether to show it or not).
So you would have to check the actual output of the field, not just the value.

But again:
Please read the docs to understand how Articles Anywhere works:
docs4.regularlabs.com/articlesanywhere
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