[solved] htmlExport - no stylesheet images

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Jonny
Forum Members
Forum Members
Posts: 77
Joined: Sun Sep 24, 2006 10:49 am

[solved] htmlExport - no stylesheet images

Post by Jonny »

Anyone using htmlExport?

I'm finding that images specified in stylesheets are not being loaded.

Have tested with the CMSMS root at different levels and tried tweaking the image URLs in the exported stylesheets.

Could be useful for speeding up sites which aren't often updated.

If the Firefox Edit CSS extension is activated the images appear, and vanish again when it's closed. Possible clue?
Last edited by Jonny on Thu Sep 27, 2007 9:24 pm, edited 1 time in total.
Pierre M.

Re: htmlExport - no stylesheet images

Post by Pierre M. »

I have not tried htmlExport.
Have you seen the recent thread on mirroring wit wget ? Do you think the images in stylesheet aren't being mirrored ?

Pierre M.
Jonny
Forum Members
Forum Members
Posts: 77
Joined: Sun Sep 24, 2006 10:49 am

Re: htmlExport - no stylesheet images

Post by Jonny »

I must have been editing the wrong stylesheet when I tested for alternative URL paths.

Making image URL paths relative by adding ../ displays them correctly. For example:

.background { background-image: url(../path/to/images/image.jpg); }

htmlExports creates the stylesheet in cmsms_root/stylesheet/ and the html in cmsms_root/html

I guess htmlExport needs to be tweaked to add relative paths to image declarations.
Pierre M.

Re: htmlExport - no stylesheet images

Post by Pierre M. »

Jonny wrote: Making image URL paths relative by adding ../ displays them correctly.
Correct, this is the CSS specification.
Pierre
Jonny
Forum Members
Forum Members
Posts: 77
Joined: Sun Sep 24, 2006 10:49 am

Re: htmlExport - no stylesheet images

Post by Jonny »

With relative paths the images won't be displayed in unexported pages.

Will have to go with absolute http://www etc. paths in the original stylesheets.

One final point: if htmlExport's auto export option is switched on, Edit Page preview windows are blank.
Last edited by Jonny on Thu Sep 27, 2007 11:09 pm, edited 1 time in total.
Post Reply

Return to “CMSMS Core”