Hi there!
I have two Relationship fields within a Grid field. What tag syntax do I use to get an output?
I’ve tried:
{exp:channel:entries channel="projects" disable="categories|member_data|pagination"}
<ul>
{ticket_assignments} <!-- Grid field name -->
{ticket_assignments:gd_assign_to_client_rel:title} <!-- 'gd_assign_to_client_rel' is the first Relationship field -->
{/ticket_assignments}
<li>
<ul>
<li>{title}</li>
<li>{job_number}</li>
{ticket_assignments}
<li>
{ticket_assignments:gd_existing_tickets_rel:title} <!-- 'gd_existing_tickets_rel' is the second Relationship field -->
</li>
{/ticket_assignments}
</ul>
</li>
</ul>
{/exp:channel:entries}
This actually seems to work but I get errors… (see below)
Nothing is output from the second Relationship field at all. I’ve checked the entry and I have indeed allocated items.
Errors are:
Severity: Notice
Message: Undefined offset: 5
Filename: libraries/Grid_parser.php
Line Number: 155
and also…
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /file/path/to/my/website/system/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 412
I hope this makes sense?
Many thanks