I am using EE 2.6.1 with a relationship field. The two entries in the venue related entry (telephone and email) are not mandatory fields, so the way I would usually do it is wrap it in an if statement and only display if the field is populated. Like so:
<div class="contact-details">
{if course-venue:telephone}<p>Telephone: {course-venue:telephone}</p>{/if}
{if course-venue:venue-email}
<p>Email: {encode="{course-venue:venue-email}" title="{course-venue:venue-email}"}</p>
{/if}
</div>
Problem is that EE's native relationships field doesn't seem to work this way, does anyone know how I can achieve the same result? This just displays nothing.
Thanks in advance!