After upgrading to 2.1.1 a snippet (called from a chunk) that generates html text strings dynamically is not outputting.
The chunk calls the snippet:
[[!someSnippet]]
and (simplified for this example) the snippet outputs a string dynamically:
$text = "<li>Some text and an link to an image</li>";
echo $text;
This worked fine in 2.0.8 but not after I upgraded to 2.1.1
Any ideas on what I might try?
Thanks!
Terry
I seem to remember a similar problem.
I think the advice given was to :-
return $text not echo
Give it a try
DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
Nope - return doesn’t help . . .
But when I change languages on the site by running the attached file the snippet does output the text.
Does that ring any bells?
Thanks!
Terry