hi, I seem to make a bit of work for myself on deploying a site from localhost to a server on going live with regard to file paths - particularly images. Some of the images on the site are not defined as editable fields and uploaded via Couch - but were simply put into a file named 'img' - hence a path of img/image-name.jpg which works fine on localhost. These images may be referrred to in the HTML or CSS files.
But when I move a site live I have to add the prefix of '/' for the path to continue to work (or add <cms:show k_site_link />). A similar thing also applies to javascript files - placed in a folder named 'js'.
Is there any other way of allowing a seamless transition from localhost i.e. not having to change paths? Do I have to declare an editable field of img type and upload the images and then reference them by name with <cms:show image_name /> for this to happen?
There are some images in the site that I don't expect or want the client to access (e.g. site logo, background images and so on).
Yours, slightly confused!
But when I move a site live I have to add the prefix of '/' for the path to continue to work (or add <cms:show k_site_link />). A similar thing also applies to javascript files - placed in a folder named 'js'.
Is there any other way of allowing a seamless transition from localhost i.e. not having to change paths? Do I have to declare an editable field of img type and upload the images and then reference them by name with <cms:show image_name /> for this to happen?
There are some images in the site that I don't expect or want the client to access (e.g. site logo, background images and so on).
Yours, slightly confused!