I still do not understand why the variables are not display. I followed the configuration
I withdrew # of line 57 of the file tbs4modx.class.inc.php
echo 'merge for ['. $tplvar.'] : '.$n.'='.$v2.'<br />';
No message with the screen: to believe that the class is not implemented.
Do you have an idea?
For information, here the code which I placed in a snippet:
// Test TBS
global $modx;
global $mysnippet_template;
global $myvariable;
$mysnippet_template='
<h3>[{myvariable}]</h3>
';
$myvariable='hello';
$template = $modx->tbsTpl->addTemplate($mysnippet_template);
$modx->tbsTpl->addField($template,'myvariable',$myvariable);
$modx->tbsTpl->addBlock($template,'myarray',$myarray);
$output = $template;
I tested [{myvariable}], [{var.myvariable}], [myvariable] and [var.myvariable] with the same result: no display
Thanks