webobjects-dev@wocommunity.org Jo'natmalar ro'yhati #529 maktub
Kimdan: Markus Ruggiero (rucotec) <markus.ruggiero@rucotec.ch>
Mavzu: Dynamic URL in CSS
Sana: Wed, 1 Oct 2025 14:53:44 +0200
Kimga: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
I have a large customer application that has nicely structured CSS files. Unfortunately in one of them there are some absolute references to WebServerResources

background-image: url(/MyApp/images/logo.png")

This fails when the file is in WebServerResources. Up to now my customer had all resources served statically from Apache. This works in production but is not portable and breaks in Eclipse on my dev machine. 

What would be the best way to convert such CSS URLs? I cannot just put a WOResourceURL in there or some such because the definition is in a separate .css file in WebServerResources, not in a WOComponent.

How to best deal with such things?

Thanks for any tip and help
---markus---



To'g'ridan to'g'ri obuna bo'lish Daydjestga obuna bo'lish Mundarijaga obuna bo'lish Voz kechish Listmaster ga yozish