Have a TV ’langinfo’ with default-value for example:
@EVAL $lang=$modx->getTemplateVarOutput('language', $docid); return '{{Info_'.$lang['language'].'}}';
It works perfect in the Documentoutput with [*langinfo*], but not in Ditto with [+langinfo+].
May be it is a bug in Ditto. After modifiing the function appendTV like this:
//removed this line: $defaultOutput = getTVDisplayFormat($row[’name’], $row[’default_text’], $row[’display’], $row[’display_params’], $row[’type’],$row[’contentid’]);
foreach ($docIDs as $id) {
//added next line:
$defaultOutput = getTVDisplayFormat($row[’name’], $row[’default_text’], $row[’display’], $row[’display_params’], $row[’type’],$id);
So it works in Ditto too.
Do you think this is a Bug in Ditto?
Bruno