X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.25a (ClamAV 0.103.12/27778) X-Junk-Score: 0 [] X-KAS-Score: 0 [] Return-Path: Received: from mail01.rucotec.ch ([65.21.159.64] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.18) with ESMTPS id 34708369 for webobjects-dev@wocommunity.org; Wed, 01 Oct 2025 14:54:06 +0200 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=65.21.159.64; envelope-from=markus.ruggiero@rucotec.ch Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 7F4705E02C for ; Wed, 1 Oct 2025 14:53:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rucotec.ch; s=dkim; t=1759323235; h=from:subject:date:message-id:to:mime-version:content-type; bh=BMDpXZTvMmOJuDFgDEy3IN0t3mSfDwWgJXIqLDoLBjQ=; b=BSHBvFONPSbWgEN+jkoB8c0lZvU5LwAe9bhPaHQgQrHUqWb2EjYV2tMNwitDlxAvAUX3ca kMSiApEnvzWaE1kcvxnp9/alWKmAn/ESf9DXEZklh3W4Mdb/V0hacX2MvpFO/HquZ7LAKS rVlinhnyFPaLHJus3NMtlHyfNY1mHnZBojTsWFoMah1yzabAeNrSPDp5I/k2q6cqObqr/4 iVpbjt0LO4O8EUt7bvjZIGZqB0Sk+cmITbckGEGiwpCGy7+2yDTubd/vBY/xfIX3ez3xp3 /eM6lEX4RuUAR3/py0pYDULRStBjU+rZ0gf4SjNrSZplqJlrZZTIjiN5/B+s1w== From: "Markus Ruggiero (rucotec)" Content-Type: multipart/alternative; boundary="Apple-Mail=_9F91172F-69B4-4D58-87FF-1F16FF341F93" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Dynamic URL in CSS Message-Id: Date: Wed, 1 Oct 2025 14:53:44 +0200 To: WebObjects & WOnder Development X-Mailer: Apple Mail (2.3826.700.81) X-Last-TLS-Session-Version: TLSv1.2 --Apple-Mail=_9F91172F-69B4-4D58-87FF-1F16FF341F93 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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(=E2=80=9C/MyApp/images/logo.png");=20 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.=20= 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--- --Apple-Mail=_9F91172F-69B4-4D58-87FF-1F16FF341F93 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
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(=E2=80=9C/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---



= --Apple-Mail=_9F91172F-69B4-4D58-87FF-1F16FF341F93--