Is something like this possible in the template itself, or do i need to pre-generate the list of field names in the viewparams?
idea is that the entity would drive the template. If i add a new field, the table i use to show it will grow/shrink based on the query/columns returned itself.
idea is that the entity would drive the template. If i add a new field, the table i use to show it will grow/shrink based on the query/columns returned itself.
Code:
<tr>
<xf:foreach loop="$mydata" key="$key" value="$value">
<th>{$mydata[0].colname}</th>
</xf:foreach>
</tr>