Re: Static Images
Re: Static Images
- Subject: Re: Static Images
- From: Goodbye Bill <email@hidden>
- Date: Tue, 24 Jun 2003 14:39:44 -0400
Okay... while I really do appreciate the replies, we seem to be going round
and round and getting nowhere. Let me ask this question another way...
1. If I add a static image to the page, what should the relative URL be to
the image? This should be the same for everyone using WebObjects.
2. If resources must be added to the project, where and how should they be
added?
3. Do I have to use a control for each image or should WebObjects notice the
"img" tag and convert the "src" property?
ENVIRONMENT:
- Self contained development laptop (server and dev box are same machine)
- PowerBook 1.0 GHz G4
- Mac OS X 10.2.6
- 1 GB RAM
- WebObjects 5.2
LOGIC:
I have an existing site that was built outside of WebObjects. It uses a lot
of images within each page but some elements of each page are dynamic. I am
porting it to WebObjects (obviously). I would like to use the images on the
page without having to convert every single image to a WOImage control.
STEPS SO FAR:
A. I have added ALL images to my project, under "Web Server Resources," as
well as a static copy on the sever. Here are the paths to the images:
Physically on my hard drive:
/Users/<userdir>/Projects/MyApp/Images
In Project Builder:
MyApp/Web Server Resources/Images
(the directory and contents are all set to the Web Server target)
Physically on my server's hard drive:
/Library/WebServer/Documents/Images
The location of the web server's root directory:
/Library/WebServer/Documents
B. I have attempted to add a static image to my page. I have done this by:
i. Opening a new page and adding a WOImage to the page;
ii. In the inspector, click the "Make Static" button for the WOImage;
iii. In the inspector, select "Doc Relative" for the image.
AT THIS POINT:
1. The resulting page shows the following image now in the page:
<IMG SRC="../Images/myimage.gif">
2. The image IS visible within Project Builder.
3. The image is NOT visible when doing a "Build and Debug." The URL
to the image still shows the same relative path as above.
C. I have attempted to disable Direct Connect by adding the following
Launch Argument to the executable:
-WODirectConnectEnabled NO
AT THIS POINT:
Nothing changes. See B3, above.
D. I have attempted a deployment/install of the project using the following
syntax:
sudo pbxbuild install DSTROOT=/ -buildstyle Deployment
sudo pbxbuild install DSTROOT=/ -buildstyle WebServer
AT THIS POINT:
Nothing changes. See B3, above.
HEEEEEELP! =(
This should be such an easy question. Does nobody use static images on
their sites?
Please help.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.