Search
Other Articles Anywhere questions
Forum

Get A category customfield value...

Stephan Herby's Avatar Stephan Herby
Hi Peter,
here I'm on a blog page from category "Investigation".
A get a list of articles with that simple structure :
{articles category="this:category" featured="0" ordering="category:ordering"}
{/articles}
and it works well.

Now I would like to print a single article from category "Magazine".
To do that, I have created a custom field in my category with ACF acfarticles i called "magazine" so I can choose an article in my category.
Now I'm trying to use this structure :
{articles category="Magazine" id="this:magazine"}This investigation has been published in [title]{/articles}
But nothing is printed.
Am i missing something ?
Maybe it is not possible to use the "this:" structure on a blog page?
But as I told you, it works for the first structure.
So I'm wondering.
Peter van Westen's Avatar Peter van Westen ADMIN
Should work. Depends on what value that magazine field is holding. Maybe ACF is doing something unexpected.
Why not use Regular Labs Articles Field?
regularlabs.com/articlesfield
Please post a rating at the Joomla! Extensions Directory
Andrea Malalana's Avatar Andrea Malalana
Hello,

Category Custom Fields are not supported by Articles Anywhere.

Only Custom Fields assigned to articles are supported.
Peter van Westen's Avatar Peter van Westen ADMIN
Sorry, I missed the part about it being a field attached to the category, not to the article.
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Why not simply make a radio field (or something else) attached to the articles that marks the article as the 'main category article'?
And then use that to filter by.
Please post a rating at the Joomla! Extensions Directory
Stephan Herby's Avatar Stephan Herby
Hi all of you and thank you so much for your feedback.
I went with the metakey field (in category AND article) with which I could get the result expected (metakey="this:metakey")...
Any chance to have the Custom field in Category supported one day ? Just to know...
Regards.
Peter van Westen's Avatar Peter van Westen ADMIN
No, probably not.
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