Quote from: Mark at Sep 12, 2005, 02:15 PM
Found it!
ShowDoc (via Etomite)
Here’s important bits of the code:
$output = '';
$tbl = $this->dbConfig['dbase'].".".$this->dbConfig['table_prefix']."site_content";
$sql = "SELECT content FROM $tbl WHERE $tbl.id = $id";
$rs = $modx->dbQuery($sql);
$resource = $modx->fetchRow($rs);
$output = $resource['content'];
return $output;
That still doesn’t address the usage of any TVs, or of the surrounding template for that matter. I could get around the template issue fairly easilty by putting a copy of the template in a blank-template page and using that (effectively putting the entire template inside the [*content*]. Any ideas on how to make this work with TVs?