Relative URL for images
Posted: Sun Jan 22, 2006 2:40 am
In the oxygen 7.0 Eclipse plugin now there is a place to specify the relative URL for images and it works good for images. I noticed that you are changing the src attributes of all the img tags in the generated HTML to include this relative URL path - which makes the images show up when the result loads in the browser.
However this is not the best way to do this because the result html still doesn't resolve path for CSS and js files.
There is an easier and better way to do this - which is to put a <BASE> tag at the top of the result document (after doctype if doctype is generated) and doing that automatically resolves all the images, CSS and any other static resource which use a relative path in the result document
Here's an example of the BASE tag
<BASE href="file://e:\projects\build_portal\webresources/base.url"/>
I've found that Eclipse internal browser (3.1.1 version) manages the BASE tag properly and resolves all the static resources fine while rendering html
can you please fix this?
Regards,
Nilesh
However this is not the best way to do this because the result html still doesn't resolve path for CSS and js files.
There is an easier and better way to do this - which is to put a <BASE> tag at the top of the result document (after doctype if doctype is generated) and doing that automatically resolves all the images, CSS and any other static resource which use a relative path in the result document
Here's an example of the BASE tag
<BASE href="file://e:\projects\build_portal\webresources/base.url"/>
I've found that Eclipse internal browser (3.1.1 version) manages the BASE tag properly and resolves all the static resources fine while rendering html
can you please fix this?
Regards,
Nilesh