Working with the PHP substr() function is horrible, so if you have Smarty available you can use the truncate function inside your php files.
smarty_modifier_truncate($string, $length = 80, $etc = '...', $break_words = false, $middle = false)
For Example:
smarty_modifier_truncate($oStartKategorie->cBeschreibung, 200)
Schreibe einen Kommentar