Re: Embedding wo: elements within eachother
Re: Embedding wo: elements within eachother
- Subject: Re: Embedding wo: elements within eachother
- From: Klaus Berkling <email@hidden>
- Date: Wed, 18 Feb 2009 07:21:22 -0800
On Feb 17, 2009, at 1:31 AM, Freddie Tilley wrote: Is it possible to embed multiple wo elements in each other with Apple's new component file format? If not, it would make the WOResourceURL pretty much useless as it cannot be used to include css files.
The following obviously does not work: <link rel="stylesheet" type="text/css" href=""style.css" />" />
I recently had a this issue and use a different way to include the CSS file:
For WO5.4/10.5: <style type="text/css" media="screen"> @import url(<webobject name = LinkToCSSFile></webobject>); </style>
For WO5.3/10.4 this worked: <link type="text/css" rel="stylesheet" href="<webobjects name=LinkToCSSFile></webobjects>" title="StyleSheet" />
The problem with using this in WO5.4/10.5 was with the '<' and '>'.
In both cases the wod looks like this: LinkToCSSFile : WOResourceURL { filename = "styles.css"; }
(Framework is omitted since "app" is the default.)
Of course this may not work with all tags and you may have to do this in your code. My objective was not to have the name of the css file in my code.
Thanks kib
"Success is not final, failure is not fatal: it is the courage to continue that counts.” - Winston Churchill
Klaus Berkling Systems Administrator DynEd International, Inc.
|
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden