You can process a TV through a snippet to allow users to input/edit formatted content that might otherwise be difficult for them to do. For example, here is a simple snippet called "FactTable" that formats a TV to display a 2-column table with alternating background color for the rows:
// usage: [[FactTable?tvname=sometvname]]
$tv=$modx->getTemplateVar($tvname);
$rows=split("\n",$tv['value']);
$output="<table class='quicktable'>";
$x=1;
foreach ($rows as $row) {
if ($x % 2!=0) $color="bgcolor=#eeeeee"; else $color="" ;
$columns=split(":",$row);
$output.="<tr ".$color." ><td style='font-weight:bold'>".$columns[0]."</td><td>".$columns[1]."</td></tr>\n";
$x++;
}
$output.="</table><quickedit:".$tvname." />";
return $output;
You can then include instructions in the description field for the TV. In this case, something like "List a category and a fact on each line in the format category:fact. Number of lines is not limited."
Then put as in the default value field:
category 1: fact 1
category 2: fact 2
As you can see the snippet outputs a QuickEdit link to allow manager users to edit the TV on the page.