Hi,
I know how to output some data through a variable. This is possible using the code as this:
$tagdata = str_replace('{my_variable}', $my_variable, $tagdata);
$this->return_data = $tagdata;
I know also how to make a variable to be available in conditionals. This is possible using the code as this:
$conds['my_variable'] = $my_variable;
$this->return_data = $FNS->prep_conditionals($TMPL->tagdata, $conds);
But how to achieve both? The lines
$this->return_data = $tagdata;
and
$this->return_data = $FNS->prep_conditionals($TMPL->tagdata, $conds);
if put one after the other cancel the one which is put the first.
So, anyone who knows intricacies of plugin writing, please be so kind, explain how to make a variable available both inside and outside conditionals.
