I have a sting:
$string = "this string is a lorem ipsum string"
after the 4th word I want to add a keyword like:
$keyword = "newword"
now the result should look like this
$newstring = "this string is a newword lorem ipsum string"
how can i handle this with smarty in a tpl-file?
I haven't used Smarty in a long time, but you can do this in PHP and inject into the template or use the PHP in the template: