Good evening first of all!
I already read Ticket Nr 158 and tried both solutions. But unfortunately no success.
I shorted the code for you. Perhaps you can help me. I would like to show my custom econa field "Einleitungsbild" (intro image).
Thx in advance
I already read Ticket Nr 158 and tried both solutions. But unfortunately no success.
I shorted the code for you. Perhaps you can help me. I would like to show my custom econa field "Einleitungsbild" (intro image).
<?php foreach ($list as $item) : $item->jcfields = FieldsHelper::getFields('com_content.article', $item, true); foreach($item->jcfields as $field) { echo FieldsHelper::render('com_content.article', 'field.render', array('field'=> $field)); } /*$item->jcfields = FieldsHelper::getFields('com_content.article', $item, true); echo FieldsHelper::render('com_content.article', 'field.render', array('field'=> $item->jcfields[0]));*/ /* if (isset($myCustomFields['einleitungsbild']) and !empty($myCustomFields['einleitungsbild'])) : echo $myCustomFields['einleitungsbild']; endif; */ if ($params->get('show_introtext', '1')) : echo $item->introtext; endif; endforeach; ?>
Thx in advance