 |
Smarty
The discussions here are for Smarty, a template engine for the PHP programming language. Dedicated server web hosting provided by Guru-host.eu. |
| View previous topic :: View next topic |
| Author |
Message |
TomHao Smarty n00b
Joined: 02 Apr 2012 Posts: 1
|
Posted: Mon Apr 02, 2012 8:27 am Post subject: Search and Replace with a variable in a variable |
|
|
Hi,
I have two columns: title and manufacturer. I would like to remove the manfacturer from the title, as it appears there.
However this:
{$src.title|replace:"$src.manufacturer":""}
does not work.
Can anybody see a mistake, why its not working?
//edit: Got it.... need to be like this:
{$src.title|replace:$src.manufacturer:""} |
|
| Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|