hi... i have a problem wich i don’t know how to solve
i installed geshi module and it works fine .... more or less .. whenever i look at some resource geshi works fine .. but in one resource instead of [*content*] i call my own snippet in wich i do a custom query to display multiple resources from one container .... in this case geshi in <pre> tag doesn’t work.
Is there a way to run that geshi module at the end of my snippet ? or when i should run it .. so that geshi will work in my snippet ?
My snippet:
<?php
$id = $modx->documentIdentifier;
$query = $modx->db->query("SELECT id,pagetitle,content,longtitle FROM site_content WHERE parent=$id AND deleted=0 AND published=1 ORDER BY pagetitle");
$results = $modx->db->makeArray( $query );
echo '<br /><div id="accordion">';
$i=0; foreach($results as $r){ $i++;
echo '<strong class="toggler">'.$i.'. '.$r['pagetitle'].'</strong>';
if($r['longtitle']) echo '<span class="fc3 fs10 subtitle">'.$r['longtitle'].'</span>';
echo '<div class="element">'.$r['content'].'<hr /></div>';
}
echo '</div>';
?>
probably that isn’t the best way to get the data i want, but im a beginner in modx and i still learning it