| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Dynamic Image Directory Reference from within Langauge Variable | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
Re: Dynamic Image Directory Reference from within Langauge Variable
Well the language variables are pulled from the DB, and placed in the template, smarty variables contained inside them are not processed normally.
But using |substitute makes it look for that {{tag}} that you specify, and then it can evaluate the variable and include it in the string. Glad you got it sorted.
__________________
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. |
|||||||||
#12
|
|||||||
|
|||||||
Re: Dynamic Image Directory Reference from within Langauge Variable
Alternatively and possibly simpler solution would be:
Language variable would contain this exactly as Steve suggested: Code:
Then call the language variable in your tpl file thusly: Code:
Essentially you can treat a variable as a template and embed entire smarty constructs within then using eval function outputs the variable contents. Quote:
|
|||||||
|
#13
|
|||||||||
|
|||||||||
Re: Dynamic Image Directory Reference from within Langauge Variable
Quote:
__________________
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. |
|||||||||
#14
|
|||||||
|
|||||||
Re: Dynamic Image Directory Reference from within Langauge Variable
Awesome hooter, I will try that as well. Does it hurt anything to have the {eval var=$lng.languagevariablename} if there is no {$something} in the langauge variable? I'm gussing not.
What a world of possibilities opens up!
__________________
David Coggan Carolyn Nussbaum Music Company X-Cart v4.5.4 Gold + LiteCommerce v2.2.41 (previous 6 years) |
|||||||
#15
|
|||||||||
|
|||||||||
Re: Dynamic Image Directory Reference from within Langauge Variable
Quote:
__________________
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. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|