I think a single checkbox TV would perform better and do the same thing, though maybe I'm misunderstanding what you're trying to do.
I think a MIGX TV would also perform faster and do the job.
You could also have a single TV called SideBars with a comma-separated list containing the names of the SideBars to show in the order you want to show them.
For example, SideBars TV content:
SideBarOne,SideBarThree,SideBarFive
Then use this snippet:
[[!ShowSideBars? &bars=`[[*SideBars]]`]]
<?php
/* ShowSideBars snippet */
$bars = explode(',', $scriptProperties['bars']);
$output = '';
foreach ($bars as $bar) {
$output .= $modx->getChunk($bar);
}
return $output;
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODX info for everyone:
http://bobsguides.com/modx.html