I may have missed something obvious here but I can’t find a way to loop through all the options in a checkbox field and display each one.
At the moment i’m hardcoding each checkbox in the template like this:
<fieldset>
<label>Buyers will need:</label>
<label><input type="checkbox" class="checkbox" name="Photography" value="n" {Photography} />Photography</label>
<label><input type="checkbox" class="checkbox" name="Illustration" value="n" {asset_required_extras}/>Illustration</label>
<label><input type="checkbox" class="checkbox" name="Font licenses" value="n" {asset_required_extras}/>Font licenses</label>
<label><input type="checkbox" class="checkbox" name="Icon licenses" value="n" {asset_required_extras}/>Icon licenses</label>
</fieldset>
Which means if the clients choses to add another option from the control panel, the template will need to be edited.
I want to use these in a search / filter form to only show results with the selected attributes.
Thanks!