Hi,
Once you call a snippet inside a chunk, does it render as static content? Because when I call a snippet inside a chunk, which in turn is called by tvEditor, it does not work as expected.
getModel snippet (Lists all model tv entries)
<?php
$result = $modx->db->query('SELECT DISTINCT `value` FROM `modx_site_tmplvar_contentvalues` WHERE `tmplvarid` = 3 ORDER BY `value` ASC');
$models = $modx->db->makeArray( $result );
foreach($models as $model){
$output .=$model['value'].'=='.$model['value'].'||';
}
return $output;
?>
cars chunk
tvExplorer place holder
[+tve.model:#RANGE{tvtype->dropdown:label->Make & Model:elements->@Chunk cars:filter->9:blankLabel->(Any)}+]
end result select box:
If I manually put the values outputted by my getModel snippet into my car chunk it works as it should do.
any ideas how to fix this?
many thanks,
Gareth