We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4172
    • 5,888 Posts
    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
      -------------------------------

      you can buy me a beer, if you like MIGX

      http://webcmsolutions.de/migx.html

      Thanks!