I have type which has relation field. This field is shown in full view only. I have added related articles to some records, to others not yet.
In list view I want to somehow let people know which records have related article and which not. How can it be done?
<?php if(isset($item->fields_by_key[$params->get('tmpl_params.field_video')])):?>
<?php echo $item->fields_by_key[$params->get('tmpl_params.field_video')]->result; ?>
<?php endif; ?>
This code displays related articles in full view if they exist, if not it does nothing. I want same but as a result want only text "YES" or something constant if value exists if not display nothing.
Just editing second line displays custom text for all records, even if it does not have attached related article.
I have type which has relation field. This field is shown in full view only. I have added related articles to some records, to others not yet.
In list view I want to somehow let people know which records have related article and which not. How can it be done?
This code displays related articles in full view if they exist, if not it does nothing. I want same but as a result want only text "YES" or something constant if value exists if not display nothing.
Just editing second line displays custom text for all records, even if it does not have attached related article.