I've use selectors in the past for displaying various TVs, but wondering about alternative options. I have a series of 7 or 8 TVs, each with varying amounts of checkboxes—lots of checkboxes. In some cases, all of the TVs will have at least one box checked, but in others there may be some left unchecked and are not needed for display on the resource. Each TV would display on the resource with a Title and the checked items displayed as a list. If a certain category is not checked, then I don't want the title on the page with no list below.
At the moment my plan is to create a TV for each category (i.e. Interior Features, Exterior Features, etc) , enter the checkbox items, and set the output to be HTML tag "li". Then create a chunk to contain the Title for the category along with the ul and li tags. In between the li tags, I'd put a call for the TV. Then, I'd create a TV selector for the TV—and call the chunk for the TV with the list of items. Seems like a lot
of work just to make a TV optional to display on a page.
A chunk would be called something like interiorFeatures_chunk
A TV with all the available options to select would be called somehting like interiorFeatures_list
A selector would be checkbox with input as: Show Interior Features==[[$interiorFeatures_chunk]]||==
<h4>INTERIOR FEATURES</h4>
<ul>
[[*interiorFeatures_list]] <!--each checked/selected item outputs between li tags here-->
</ul>
I'd be interested if anyone has another or better approach.