Giorgi625 VIP
Total posts: 655
07 May 2020 11:51

This is first time when I needed to display multiple types in one section and I am facing problem.

This is how I display fields in template file:

<?php echo $item->fields_by_key[$params->get('tmpl_params.field_newsimage')]->result; ?>

and this is how it is in xml file

<field name="field_newsimage" client="list" filters="image" type="meresourcesfields" size="5" key="key" multiple="true">

if in admin I select one image field it show correctly, but if I select image fields of two types which are connected to my Section fields does not display.

What I am missing?

Last Modified: 20 May 2020

Total posts: 13,748
20 May 2020 08:36

YOu have to select only one field. Either of those. The only condition that field keys of all fields are the same. So delete multiple="true".

Powered by Cobalt