I have a field in pages field_18, which is a checkbox set.
When I list values in my template, they usually are printed like this: Label: check1, check2, check3
I change to custom format in display options because I "need" it in a table, and I want each checkbox checked to be a link where it's filtering for that specific checkbox.
So I've tried to do the stuff below. Not very sure of what I'm doing, but it is sort of working. I do, however, have a hardcoded url there. I just use the url I get when doing such a record filter manually. I wonder how to do this more dynamically, for example if I change the name of the page I do not have to change all of these fields.
<tr><td>{$label}</td><td>
{{$myarray = explode(',', $value);}}
{{$myidarray = explode(',', $formValue);}}
{{foreach $myarray as $id => $entry}}
<a href="hardcodeurl&advanced_search_submitted=1&content_field_18[{$myidarray[$id]}]={$myidarray[$id]}&&&&sortby=primary_id_field&sortdirection=asc&record_type=all&time_frame=show_all"><span class="ipsBadge ipsBadge_style8">{$entry}</a></span>
{{endforeach}}
</td></tr>