RE: Cascading Style Sheets with WO
RE: Cascading Style Sheets with WO
- Subject: RE: Cascading Style Sheets with WO
- From: Reid Bundonis <email@hidden>
- Date: 19 Feb 03 07:16:33 -0500
Reply to: RE: Cascading Style Sheets with WO
Don't store the file as part of the project. If you do then everytime you
make a change you need to rebuild and install the app. Instead, if you are
working on OS X, store the file somewhere in web root. For example, place the
file in /Library/WebServer/Documents/ and then reference the file in you
project by <link rel="stylesheet" href="/styles.css" type="text/css">
If you like to place the css documents in a folder, then use something like
<link rel="stylesheet" href="/css/styles.css" type="text/css">
Just make sure you start your path with / and then work down to the location
of the file. When you run the app in development and later, the / means start
at web root and work your way down from there.
When you are ready to deploy the application, simple place the style sheet in
the same location on the web server. Again, if you are using OS X Server or
OS X as the web server, simply copy the file to the site root folder.
Obviously, this works for virtual hosts as well. This way, you can make
changes to the style sheet and new instances will pick them up. Worst case,
you will need to restart all of your apps in Monitor... but it is better than
re-deploying.
Also, use this same strategy for common, non active images. Let Apache do the
work of serving the graphics instead of putting all of the work on WO.
Reference images with the same path strategy, /images/name_of_image.gif.
Hope this helps.
R-
Bambi Nice wrote:
> Hi,
>
> I am using "Style sheets" in WebObjects. It is OK if I use "Internal Style
>Sheets" but I have problem with "External Style Sheets". Now, the point is
that >where can I put the "external style sheet" in order to WO can
understand. I tried >to put it into Resources / Web Server Resources, but
...that licks me!
>
>Many thanks >Yahoo! Shopping - Send Flowers for Valentine's Day
>_______________________________________________
>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.
>
>
>RFC822 header
>-----------------------------------
>
> RECEIVED: from SF_Database by POP_Mailbox_-1166493133 ; 19 FEB 03 04:36:03
UT
> Received: from LISTS.APPLE.COM by mail.imc-nj.com
> with SMTP (QuickMail Pro Server for MacOS 1.1.2); 19-Feb-2003 >04:35:49
-0500
> Received: from lists.apple.com (localhost [127.0.0.1])
> by lists.apple.com (8.11.6/8.11.6) with ESMTP id h1J9Y5605832;
> Wed, 19 Feb 2003 01:34:05 -0800 (PST)
> Received: from web20705.mail.yahoo.com (web20705.mail.yahoo.com
> [216.136.226.178]) by lists.apple.com (8.11.6/8.11.6) with SMTP id
> h1J9XLJ05785 for <email@hidden>; Wed, 19 Feb 2003
> 01:33:21 -0800 (PST)
> Message-ID: <email@hidden>
> Received: from [203.162.3.140] by web20705.mail.yahoo.com via HTTP; Wed,
> 19 Feb 2003 01:33:35 PST
> Date: Wed, 19 Feb 2003 01:33:35 -0800 (PST)
> From: =?iso-8859-1?q?Bambi=20Nice?= <email@hidden>
> Subject: Cascading Style Sheets with WO
> To: email@hidden
> MIME-Version: 1.0
> Content-Type: text/plain; charset="us-ascii"
> Content-Transfer-Encoding: 7bit
> X-Converted-To-Plain-Text: from multipart/alternative by demime 0.98b
> X-Converted-To-Plain-Text: Alternative section used was text/plain
> Sender: email@hidden
> Errors-To: email@hidden
> X-BeenThere: email@hidden
> X-Mailman-Version: 2.0.13
> Precedence: bulk
> List-Unsubscribe:
<http://www.lists.apple.com/mailman/listinfo/webobjects-dev>,
> <mailto:email@hidden?subject=unsubscribe>
> List-Id: WebObjects Development <webobjects-dev.lists.apple.com>
> List-Post: <mailto:email@hidden>
> List-Help: <mailto:email@hidden?subject=help>
> List-Subscribe:
<http://www.lists.apple.com/mailman/listinfo/webobjects-dev>,
> <mailto:email@hidden?subject=subscribe>
_______________________________________________
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.