Page 1 of 1

Developing in Local Server - viewing the images

Posted: Tue Jun 27, 2006 6:09 am
by Darwin Web Design
Hi there,
I'm very proud to have installed CMSMS locally on my PC server and all is looking great.  BUT... is there a simple way to reference all of my images in the template so they appear in the browser.  When using relative URL, it shows in the Dreamweaver preview but not on the browser.

I noticed this when I started designing the site directly online too - it would only show the empty little outline box with the red x. unless I had the full path of the image ie http://www.website.com/images/logo.gif or whatever.

Is there a way to insert all template images where it will appear in the local PC testing copy then when I upload, it will carry through rather than manually replacing each URL to an absolute one?

This I guess, isn't so much a CMSMS specific question but a fairly basic developing question for building sites on local servers in general.

Any help, gratefully appreciated.  ;D

Regards
Aussie Gecko

Re: Developing in Local Server - viewing the images

Posted: Tue Jun 27, 2006 8:10 am
by cyberman
Aussie Gecko wrote: I noticed this when I started designing the site directly online too - it would only show the empty little outline box with the red x. unless I had the full path of the image ie http://www.website.com/images/logo.gif or whatever.
Don't know if I've understood right but uploads directory has a reference in config.php so a relative path like uploads/images/logo.gif should work  ::) ...

Re: Developing in Local Server - viewing the images

Posted: Tue Jun 27, 2006 11:28 am
by Darwin Web Design
Thank you.  This image I was trying to insert was actually for the admin login page and I didn't realise the image had to be in the
"admin/themes/default/images/" directory.  (I want to use the Client's own logo).

I thought I could just somehow put it where ever I please and reference it as:
url(directory/subdirectory/xyz.gif) as I've seen referenced with other images in the demo website - but I was wrong.  I saw this method in some CSS files which must be different.

The trick once again, not to be hasty and delete anything from the demo website (including code from the admin pages) until you really feel comfy with what you're doing.

Regards
Aussie Gecko  :-*