Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1488

General Questions/New to Joomla! 5.x • Custom fields in a child category

$
0
0
To display custom fields in the parent category I use the code:

Code:

<?phpforeach ($this->category->jcfields as $jcfield) {    $this->category->jcFields[$jcfield->name] = $jcfield;}$myCustomFields = array();foreach($this->category->jcfields as $field) {$myCustomFields[$field->name] = $field->value;    } ?><?php echo $myCustomFields['iconsvg']; ?>
and it works

How can I display custom fields in a child category?

Statistics: Posted by MsenaMsena — Fri Apr 12, 2024 2:47 pm



Viewing all articles
Browse latest Browse all 1488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>