Hi guys,
I have the following problem: I have a snippet "teaser" created as an output modifier that is supposed to return only the first paragraph of a field:
<?php
$output = substr($input, 0, strpos($input,'</p>'));
return $output;
?>
When i list my resources via getResources and the tpl
then the "teaser" modifier only works on the first resource. It doesn´t get executed on the other resources.
It works if i add my modifier to "core/model/modx/filters/modoutputfilter.class.php" like this:
case 'teaser':
$output = substr($output, 0, strpos($output,'</p>'));
break;
but that is hacking of the core, which i wouldn´t do.
My MODx Version is the revision 6851 from SVN.
Can anyone help me with that?