|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
workaholic Smarty n00b
Joined: 22 May 2003 Posts: 2 Location: Toronto, Canada
|
Posted: Thu May 22, 2003 11:22 pm Post subject: How to apply more than one variable modifier - a newbie Q |
|
|
Ok, I'm really new at this stuff, but I'm liking what I see so far!!!
I have a variable: {$PLANDAY} which is a html formatted value, like:
Code: | <font size=2>%20May-07-2003</font> |
I figured out that {$PLANDAY|strip_tags} will remove the font tags, but I want to also remove the %20.
How can I apply two modifiers to the same variable? I'd like to also apply the {$PLANDAY|replace:"%20":""}, but I don't see how to do it.
I'm doing this inside of a template (.tpl) file. I don't have access to the original program to create the template file.
Is there a way to do this?
Thanks,
Earl |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Fri May 23, 2003 12:25 am Post subject: |
|
|
You can chain modifiers, much like a pipe...
{$PLANDAY|strip_tags|replace:"%20":""}
Neat. |
|
Back to top |
|
workaholic Smarty n00b
Joined: 22 May 2003 Posts: 2 Location: Toronto, Canada
|
Posted: Fri May 23, 2003 11:43 pm Post subject: |
|
|
Thanks! Definitely did the trick...
Earl |
|
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
|