View Single Post
  #1  
Old 12-19-2012, 08:17 PM
 
tartaglia tartaglia is offline
 

X-Adept
  
Join Date: May 2006
Location: Dallas, TX
Posts: 575
 

Default Dynamic Image Directory Reference from within Langauge Variable

Hi all, (XC 4.5.4)

Can anyone explain to me why the following does not work in a language variable:

<a href="home.php"><img src="{{AltImagesDir}}/custom/mypicture.jpg" /></a>

It seems it cannot use the {{AltImagesDir}} to determine the path to the picture.

I also tried inserting a "$", {{$AltImagesDir}} which did not work either.

I saw something similar in another default language variable, but since I don't know whether the lng variable I found with similar value is being used anywhere I don't know if it actually works either.

I can get the following to work, but want to understand why the former doesn't:

<a href="home.php"><img src="../images/custom/mypicture.jpg" /></a>
__________________
David Coggan
Carolyn Nussbaum Music Company
X-Cart v4.5.4 Gold +
LiteCommerce v2.2.41 (previous 6 years)
Reply With Quote