X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Images in .tpl (https://forum.x-cart.com/showthread.php?t=71717)

ARW VISIONS 03-27-2015 04:33 PM

Images in .tpl
 
Is there an equivalent to $AltImagesDir?

totaltec 03-27-2015 05:54 PM

Re: Images in .tpl
 
Not that I know of. I am curious if there is too. Really there are not many examples in the code of a directly referenced image anywhere, except for category, product, or logo. there is nothing that is just an image, only background images applied through CSS.

My advice for now is to just put the images in your module's skin directory, then reference them with skin/default/en/devid/modulename/images/

Of course, you can easily define your own global altImagesDir() method and use that.

ARW VISIONS 03-27-2015 06:07 PM

Re: Images in .tpl
 
what I put the method in my main.php?

ARW VISIONS 03-31-2015 06:18 PM

Re: Images in .tpl
 
hello xcart!!! is there an AltImagesDir equivalent??

qualiteam 04-01-2015 01:51 AM

Re: Images in .tpl
 
There is no a kind of $AltImagesDir variable in X-Cart 5 templates.

Why "skin/default/en/devid/modulename/images" does not work for you?
What do you want to achieve?


All times are GMT -8. The time now is 03:54 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.