Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 4 matches
Smarty Forum Index
Author Message
  Topic: Use a config variable {#var#} inside smarty expression
mik3e

Replies: 1
Views: 3022

PostForum: General   Posted: Wed Sep 18, 2013 1:58 pm   Subject: Use a config variable {#var#} inside smarty expression
After some experiments I found the solution - maybe someone need it also:
{$BUTTON_NEW|regex_replace:'/<a[^>]*href="([^"]*)"[^>]*>. ...
  Topic: Use a config variable {#var#} inside smarty expression
mik3e

Replies: 1
Views: 3022

PostForum: General   Posted: Wed Sep 18, 2013 1:30 pm   Subject: Use a config variable {#var#} inside smarty expression
Hi,

I´ve the need to use a config variable inside a smarty expression. In this example I´ve a regular expression where I want to add a language dependend text ({#new_address#}):

{$BUTTON_NE ...
  Topic: Multi-Replace variables in Text
mik3e

Replies: 2
Views: 4595

PostForum: General   Posted: Mon Aug 26, 2013 1:47 pm   Subject: Multi-Replace variables in Text
Great, thanks - I´ll try it...
  Topic: Multi-Replace variables in Text
mik3e

Replies: 2
Views: 4595

PostForum: General   Posted: Tue Aug 20, 2013 2:58 pm   Subject: Multi-Replace variables in Text
Hi,

I´m using the following form to define text in language files:

tax_shipping = 'Text with on %s1 variable and another %s2 variable';

In other systems I´m able to use a function which I pas ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP