Search
Other Articles Anywhere questions
Forum

Nothing displayed filtering with Custom Fields

Vinny Hebert's Avatar Vinny Hebert
p>{articles category="Skills" skill-category:text="Horsemanship"}[link][title][/link]{/articles}</p>
This is the code I'm using. Now "skill-category" is an artcles field.
Peter van Westen's Avatar Peter van Westen ADMIN
You cannot filter on the text output of a field.
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Yes, that refers to the text value of the option as it is saved in the database for that custom field.
Articles Field works differently, as the available articles in the select list are rendered dynamically. So there is no simple id => text list of options attached to the field in the parameters.
This means, Articles Anywhere cannot do a database query looking for that text.
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
So there is no way to filter out by what that field has?
Peter van Westen's Avatar Peter van Westen ADMIN
Try with the id of the article, instead of the title.
Please post a rating at the Joomla! Extensions Directory
Andrea Malalana's Avatar Andrea Malalana ADMIN
Yes, you can use the article IDs (which is what is saved in the database for Articles Field)

Meaning, for example:
{articles category="Skills" skill-category="92"}[link][title][/link]{/articles}
Vinny Hebert's Avatar Vinny Hebert
You know Andrea, I swear I tried that before I started this thread and it didn't work. NOW, it works.
Vinny Hebert's Avatar Vinny Hebert
Is there a way to exclude the current article in that list?
Vinny Hebert's Avatar Vinny Hebert
I've tried this but not sure why the current article is still showing.
<p>{articles category="Skills" skill-category="27 && !this:id"}[link][title][/link]{/articles}</p>

I've tried this too
<p>{articles category="Skills" skill-category="27 && !current"}[link][title][/link]{/articles}</p>
Andrea Malalana's Avatar Andrea Malalana ADMIN
I'm not sure what you're trying to do.

If "skill-category" is an article, and you're already specifying the exact article ID that you want (27), why do you need to exclude the current article? You're already saying "only article 27".
Vinny Hebert's Avatar Vinny Hebert
So I'm trying to list all the articles that have the skill-category of 27 but NOT the current article (which also would have the skill-category of 27.
Andrea Malalana's Avatar Andrea Malalana ADMIN
Oh, that's different than.

This should do what you need 🙂
{articles category="Skills" skill-category="27 articles="!current"}
Vinny Hebert's Avatar Vinny Hebert
Yep, that makes sense. However I'm not getting the correct reults.
<p>{articles category="Skills" skill-category="27" articles="!current"}<div class="uk-width-1-3">[link][title][/link]</div>{/articles}</p>

The first one listed should be elimitated
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
Peter van Westen's Avatar Peter van Westen ADMIN
PS: Please first try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
That worked.

And a clever way of getting me to renew my subscription 😉
Peter van Westen's Avatar Peter van Westen ADMIN
So you weren't even running the latest stable version of Articles Anywhere?
Vinny, you should know better! 😁
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
To be honest, thought I was. And its Hebert, not Herbert.
Peter van Westen's Avatar Peter van Westen ADMIN
I didn't say 'Herbert', I said 'Vinny'... really...! 😬
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