Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Images in .tpl

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 03-27-2015, 04:33 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Images in .tpl

Is there an equivalent to $AltImagesDir?
__________________
xcart 5.1.2
Reply With Quote
  #2  
Old 03-27-2015, 05:54 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default 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.
__________________
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
  #3  
Old 03-27-2015, 06:07 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Images in .tpl

what I put the method in my main.php?
__________________
xcart 5.1.2
Reply With Quote
  #4  
Old 03-31-2015, 06:18 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Images in .tpl

hello xcart!!! is there an AltImagesDir equivalent??
__________________
xcart 5.1.2
Reply With Quote
  #5  
Old 04-01-2015, 01:51 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:39 AM.

   

 
X-Cart forums © 2001-2020