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

Images on Home Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-26-2010, 01:18 PM
 
Sceenwritingscience Sceenwritingscience is offline
 

Member
  
Join Date: Dec 2008
Location: Upper West Side, Manhattan.
Posts: 14
 

Default Images on Home Page

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
Reply With Quote
  #2  
Old 08-26-2010, 03:38 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Images on Home Page

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
Reply With Quote
  #3  
Old 08-26-2010, 03:54 PM
 
Sceenwritingscience Sceenwritingscience is offline
 

Member
  
Join Date: Dec 2008
Location: Upper West Side, Manhattan.
Posts: 14
 

Default Re: Images on Home Page

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
Reply With Quote
  #4  
Old 08-26-2010, 03:58 PM
  robb3369's Avatar 
robb3369 robb3369 is offline
 

Advanced Member
  
Join Date: Jul 2010
Posts: 83
 

Default Re: Images on Home Page

You can take out the <o:p></o:p> code... That is pure Microsoft Word code... Visually doesn't matter, but unnecessary.
__________________
Thanks, Rob

X-Cart 4.4.5 and 4.5.4 on Linux
Reply With Quote
  #5  
Old 08-26-2010, 04:00 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Images on Home Page

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
Reply With Quote
  #6  
Old 08-26-2010, 04:07 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Images on Home Page

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
Reply With Quote
  #7  
Old 08-26-2010, 04:09 PM
 
Sceenwritingscience Sceenwritingscience is offline
 

Member
  
Join Date: Dec 2008
Location: Upper West Side, Manhattan.
Posts: 14
 

Default Re: Images on Home Page

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
Reply With Quote
  #8  
Old 08-26-2010, 05:16 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Images on Home Page

Not the whole server path, just skin1/images/yourimagename.jpg
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote

The following user thanks balinor for this useful post:
Sceenwritingscience (08-26-2010)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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 06:06 AM.

   

 
X-Cart forums © 2001-2020