| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Images on Home Page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I am having problems with displaying images on my Home page.
First, I created a 'Test' page in the Static Page section of Administration and got it to display images and texts there exactly like I wanted it to appear. But when I copied and pasted the code that makes up the 'Test' static page into my Home page via Webmaster Mode, the text copies and I can see it, but the image isn't there, only a '?' in a blue box. This is the code I used: <img height="130" alt="" src="{$ImagesDir}/Ronin-Screenplay-Summary.jpg" width="130" /> <o:p></o:p></div></span></span></div> I'm guessing the problem is because Test pages are HTML but the Home page is php. Correct? Please could you suggest how to solve this problem. Many thanks, Melvyn P. Heyes.
__________________
4.1.11 Download Expander Fancy Categories |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Static pages are individual pages, they do not show on front page. Ifyou want to show something on front page edit welcome.tpl
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() I am editing the Home page content via Webmaster mode, not through the template (I don't want to change format, only content!). My problem is images that won't appear. I can get them to appear in a static page but they won't appear even if I transfer the code to the home page via Webmaster.
__________________
4.1.11 Download Expander Fancy Categories |
|||||||
#4
|
|||||||||
|
|||||||||
![]() You can take out the <o:p></o:p> code... That is pure Microsoft Word code... Visually doesn't matter, but unnecessary.
__________________
Thanks, Rob ![]() |
|||||||||
#5
|
|||||||
|
|||||||
![]() You can't use this in webmaster mode:
{$ImagesDir} Need to use skin1/images or whatever the real directory is. Smarty doesn't work in smarty variables.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Beat me to the second
![]() As balinor said - if you want to use Webmaster mode you have to use path not smarty variable. If you edit welcome.tpl or any other template file in a text editor then you can use smarty variables in there.
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#7
|
|||||||
|
|||||||
![]() Thanks Padraic,
So if I write the following in the static pages: <img src="{$ImagesDir}/ Ronin-Screenplay-Summary.jpg " alt="" width="130" height="130"/> What do I write in the Home page if my images are in: /home/myusername/mywebsite/htdocs/skin1/images Appreciate your help here. M.
__________________
4.1.11 Download Expander Fancy Categories |
|||||||
#8
|
|||||||
|
|||||||
![]() Not the whole server path, just skin1/images/yourimagename.jpg
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|
|||
X-Cart forums © 2001-2020
|