View Single Post
  #8  
Old 12-20-2012, 09:28 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Dynamic Image Directory Reference from within Langauge Variable

David, I was three sheets to the wind when I posted. No wonder it didn't make sense. The missing post threw me off too.

Here is a snippet from a 4.4.5 cart /common_files/customer/main/welcome.tpl

Code:
<h1>{$lng.lbl_welcome_back|substitute:"name":$display_greet_visitor_name} </h1>
Then looking at the language variable lbl_welcome_back we see this:
Code:
Welcome back, {{name}}
The important part is "|substitute:"name":$display_greet_visitor_nam e" when you call the language variable in the template.

Make sense now? As I understand it, you want to use a smarty variable in a language variable. You have done the right thing encapsulating your variable in the language entry with {{this}} now you need to use "|substitute" when you call the language variable in the template.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote