Thank you, this is what I ended up doing because I could not find any other way.

On Nov 30, 2008, at 4:33 AM, Hugi Thordarson wrote:

As I've become older and wiser (and computers gain more processing power) I've moved away from static resources. They limit my abilities to do cool stuff :-). But if you're still using statically served CSS-files, I'd recommend moving the declaration for css-classes that reference WO resources to your component.

[warning! pseudocode!]

HTML:
<style type="text/css">
        #globalNav {
                background-image: url( <webobject name="URL_STRING" /> );
        }
</style>

WOD:

URL_STRING: WOResourceURL {
        filename = "glbnav_background.gif";
}


Cheers,
- Hugi

// Hugi Thordarson
// http://hugi.karlmenn.is/


On 29.11.2008, at 23:35, Randy Wigginton wrote:

I am making progress on my application, though I'm certain my questions do not imply such.

I have a css definition:
#globalNav{
background-image:  url(glbnav_background.gif);
}

However, when deploying, the url generated is something like:
http://192.168.1.111:49599/cgi-bin/WebObjects/glbnav_background.gif

RATHER than:
http://192.168.1.111:49599/cgi-bin/WebObjects/SIAM.woa/_wr_/wodata=/Users/randy/workspace/SIAM/build/SIAM.woa/Contents/WebServerResources/glbnav_background.gif

What flag or other magic do I need to make this work correctly?


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is

This email sent to [EMAIL PROTECTED]


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to