James,

I still don't understand how to get WO to generate a URL that works regardless 
of where I'm working.  When developing, I want a URL that makes sense for 
development, and when deploying, I want a URL that makes sense there.

I don't understand why it's generating wodata= - I really just want a static 
reference that's accurate in all contexts…

Ken

On Jun 26, 2013, at 11:32 AM, James Cicenia <[email protected]> wrote:

> The image has to be public. So you could just store a url to the public image.
> 
> Otherwise:
> 
>> /Users/kanderson/MBM/repository/trunk/source/WebObjects/FitnotixService/WebServerResources/emailBackground.png
> 
> does look correct. It is the actual path to the image which the server needs 
> to server it up.
> 
> 
> 
> 
> On Jun 26, 2013, at 10:06 AM, Ken Anderson <[email protected]> wrote:
> 
>> Gang,
>> 
>> This is driving me nuts so hopefully someone has an easy answer.
>> 
>> In a component I'm using with ERMailDeliveryHTML I want to grab a background 
>> image for the email:
>> 
>> body
>> {
>> background-image:url(<webobject name="BackgroundURL"/>);
>> background-color:#ffffff;
>> }
>> 
>> BackgroundURL : WOString {
>>      value = backgroundURL;
>> }
>> 
>>     public String backgroundURL() {
>>      return 
>> WOApplication.application().resourceManager().urlForResourceNamed("emailBackground.png",
>>  null, null, null);
>>     }
>> 
>> 
>> 
>> I've tried everything including using a method to build the URL by asking 
>> WOResourceManager for the URL for the resource.
>> 
>> If I put the image in a WOImage to try and steal the URL, this is what I get:
>> 
>>              <img 
>> src="/fit/-6666/wr/wodata=/Users/kanderson/MBM/repository/trunk/source/WebObjects/FitnotixService/WebServerResources/emailBackground.png"
>>  width="800" height="600" />
>> 
>> even though I'm not using direct connect, which is confusing to me.
>> 
>> Is this just because I want to make this work in Development?
>> 
>> Thanks for any thoughts!  It was great to see many of you this past weekend 
>> and I hope to see you next year!
>> 
>> Ken
>> 
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/james%40jimijon.com
>> 
>> 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:
> https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com
> 
> 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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to