Search
Other Articles Anywhere questions
Forum

Category Custom field Output not works

Hitsch's Avatar Hitsch
we have created a custom field [teaser] for a category. in a blog article page we want to include this (categorie) custom field:
{articles categories="current"}[teaser]{/articles}

Why does this not work?

(n.b.
{articles categories="current"}[category]{/articles}
works fine, outputs the category title correctly )
Peter van Westen's Avatar Peter van Westen ADMIN
You are asking Articles Anywhere to show the custom field 'teaser' attached to the articles. Of all articles that are in that current category.
Articles Anywhere does not offer a way to show the value of custom fields attached to the category (not the article).

PS:
{articles categories="current"}[category]{/articles}
That would show the category name of all articles that are in that current category.
So if that category has 50 articles, you would see the category name 50 times.

To show data connected to the current article, simply do:
{article}[category]{/article}
Please post a rating at the Joomla! Extensions Directory
Hitsch's Avatar Hitsch
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Unfortunately I am not available for custom work, projects or new extensions.
I have my hands full on getting the current extensions ready for Joomla 4.

What you could do is write (or search for) a piece of (Joomla) PHP code that collects the data you need from the database (based on the current cat ID), and output that.
You could use Sourcerer to place that code in your article.

Or use ReReplacer to be able to use a placeholder tag in your article, which can then replaced with PHP code.
Please post a rating at the Joomla! Extensions Directory
Hitsch's Avatar Hitsch
RL Sourcener – perfect, thank You!
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription