![]() |
Adding Image to welcome.tpl??
Hello
Group I was trying to add a image to the welcome.tp page Dremweaver added the following to the page which did work in DW: <p align=center>[img]../../../files/myproducts/d_13.jpg[/img]</p> However, when loaded up at the web site the picture did not show. The only way for me to get it to show up was use the full URL. Is there a better way of doing this? <p align=center>http://www.mydomain.com/xcart/files/myproducts/d_13.jpg</p> What I am asking is do I have to use the absolute path if I am adding an image to a page? If I use a image in the image folder I found I can do the following and the image shows up great. <p align=center>[img]{$ImagesDir}/xlogo.gif[/img]</p> What I am trying to do is make some modifications in DW (if possible) so I can see what is going on. What is the best way to make these modifications. |
<p align=center>[img]/xcart/files/myproducts/d_13.jpg[/img]</p>
It'll also work from within dreamweaver if the folder structure is the same as your live site. Will work too and won't break on static generation either. |
Thanks groovico
I am going to see if I can follow what you write and have another go at it. |
look out
welcome.tpl just references welcome_txt in the languages section, why not just put your code in the welcome_txt file?
|
Yeah, thats much easier (snorocket ref.), that way it is much easier to change it when you like. But you would still have to use the http reference for the image I guess.
|
keep images in skin1/images folder and reference them as {$ImagesDir}/yourpic.jpg
|
I tried using the following text in welcome_txt:
<center> <font color="#FF0000">[img]/files/store_images/card_save_big_sm_clr.gif[/img] <font size="6">Grand Opening Sale!!! </font> [img]/files/store_images/card_save_big_sm_clr.gif[/img]</font></p> <h3>Everything in the store is 20% off for the month of October. Don't miss this excellent opportunity.</h3> But the images are never shown (just little red X in IE). This is the full path to teh images from the http:// point of view. I don't want to mess with the .tpl file as I want to be able to change this month to month. How to get it to work? Full URL doesn't work either... (http://mysite/files/store_images/card_save_big_sm_clr.gif) |
All times are GMT -8. The time now is 12:10 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.