Forums / Setup & design / URLs in stylesheets

URLs in stylesheets

Author Message

Børge Warvik

Friday 27 January 2006 4:11:53 am

Hi

I've search the forum for this topic but haven't found a solution, and I'm pretty sure that there are none. But to be completly sure I'm asking here :)

How do you set the urls in stylesheets? Is there any eZ solution for this, is there any way to use the ezdesign operator? Or do I have to use the full path from the root?

Can I use a template for this? Like:

<style type="text/css">
{include url="design:style.tpl"}
</style>

Or is that just av very bad idea?

Thomas Nunninger

Friday 27 January 2006 4:31:04 am

Hi,

normally stylesheets are not delivered (and parsed) by eZ publish. They are delivered directly by your web server. (Have a look in the sourcecode of your frontpage: something like 'import "/design/plain/stylesheets/..."; confer the rules for modrewrite in virtual host setup.)

Of course theoretically it would be possible to create a stylesheet which is parsed by eZ publish and then you can use any template code you want.

Have a nice day

Thomas