I am running
- EE 2.5.2
- Playa 4.3.3
- Matrix 2.4.3
I have a matrix field inside channel entries pair tag. The first column in that matrix is a playa field type. That playa field relates to a matrix on another site that is run by MSM.
This is all generating a table in my template.
what i have so far
I have successfully pulled the playa children using the following:
{matrix_field}
<tr>
{if plhotel} <!--playa column-->
<td>
{exp:playa:children site="mysite" field="hotels" limit="1"}
{hotel-name} <!--desired playa value-->
{/exp:playa:children}
</td>
{/if}
<td>{other matrix value}</td>
<td>{other matrix value}</td>
</tr>
{/matrix_field}
my issue
I need for the playa tag to pull one child per row. This is almost certainly an issue with how I've constructed the loop, I'm openly admitting this. I can't seem to prevent the playa loop from displaying all children in the first row. As you'll see I've even tried setting limit="1" in the tag which I almost knew would fail. This produced the same child in all rows of the table (still not correct).
Any advice is appreciated.