Re: [Wonder-disc] D2W(onder) Sample Sites?
Re: [Wonder-disc] D2W(onder) Sample Sites?
- Subject: Re: [Wonder-disc] D2W(onder) Sample Sites?
- From: Anjo Krank <email@hidden>
- Date: Sun, 9 May 2004 19:15:49 +0200
- Xx-reply-to: email@hidden
Am 09.05.2004 um 17:52 schrieb Ashley Aitken:
The only way I'd freeze a page would be to add a functionality I
couldn't place anywhere else.
I thought one may need to freeze a page for fine layout control
(excluding the use of XML and XSLT like you mention David does). For
example, my client is getting itchy about the way D2W lays out
property keys in a simple table. He wants to lay things out more like
you may with a drag-and-drop page layout tool, mostly a more compact
layout (eg in FileMaker or Access, which he has experience with :-(
I tell him Web apps are different than desktop apps ... and clear and
simple is good for Web pages).
Do a repetition with
<span id="SomePageConfiguration">
...repeat
<span id="someKey"><span class="propertyKey">My Label<span
class="Mandatory">*</span></span><span class="element">My
Stuff....</span>
...
</span>
Then you can use CSS rules like:
#SomePageConfiguration {
position: absolute;
left: 20px;
}
#someKey {
left: 20px; /* should be 40px from the left margin*/
}
#someKey .mandatory {
color: red;
}
#SomePageConfiguration #someKey .element {
left: 80px;
}
Whatever. You'd need to read up on CSS and try this stuff with
generated pages and drop the CSS into the app afterwards. To create the
CSS, you'd use dreamweaver or any other tool. If your app grows larger
and you have a lot of pages, you could create a header that loads the
appropriate style sheet from the DB upon the given page config.
If you have embedded components that repeat themselves, you will
probably end up with duplicate IDs, though, not sure what to do about
that.
The other way would be to define the table layout in the rules, a la:
propertyKey = "foo" => spans = (2,1)
or sth like
pageConfiguration = "EditFoo" => layout => (("foo", "bar", "baz"), ("",
"", "bam"))
and create a template that will calculate the row/colspan attributes
from there. The above could generate:
| foo |
| bar |
| baz | bam |
I don't know what is better. Probably depends on what you want to do.
Cheers, Anjo
_______________________________________________
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.