I just want to display simple text and this is not working.
I don't know is there a way to see something like log to see what happens in the background?
public function onContentPrepare($context, &$row, &$params, $page = 0) { $row->text = str_replace("LOREM", "some thing", $row->text); echo "print some thing"; return "print some thing"; } I try in three way to display some thing.
Factory::getApplication()->enqueueMessage()...maybe give that a try, I don't know if it will work, I didn't test it. Example