Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
Search and Replace with a variable in a variable

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
TomHao
Smarty n00b


Joined: 02 Apr 2012
Posts: 1

PostPosted: Mon Apr 02, 2012 8:27 am    Post subject: Search and Replace with a variable in a variable Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP