I have a product comparison chart which is built as a html table and has the services along the top and the features down the left hand side. There is a tick placed in the cell where the two meet if the feature is applicable to the service otherwise it is blank.
I have already created the data objects (Services and Features) and built the backend using DataObject Manager. There is a many to many relationship between these two objects.
What i want to know is how i can loop through the features and then tick the correct boxes. Below is some sample code.
<% control Features %>
<tr>
<td">$Title</td>
// loop over global services here and inside each iteration, loop through the feature services array and check to see if id's match
<td class="normal-td "></td>
</tr>
<% end_control %>