Forums / Developer / Replacing text in template
Michaël Todorovic
Monday 02 February 2009 2:01:07 am
Hello,I have a string caught with template $node. I would like to replace some text inside. I know this is not template's purpose but I do not have the choice : I can't modify php files (no rights).
Is there a template operator to do this ? Is there a place where a list of operators can be found ?
Thank you
Jérôme Vieilledent
Saturday 07 February 2009 6:51:51 am
Hi Michaël
You can use the </i>String Replace Operator</i> contrib : http://ez.no/developer/contribs/template_plugins/string_replace_operator
It is designed originally for 3.x but it's very simple and should work on 4.x
Script start
Module start 'content'
Module end 'content'
Script end
Time used to render debug report: 0.0003 secs