Isn't there some kind of component that breaks things into different
pages? If not, then this page has some good information:
I am making a series of sites right now that all view the same domain
objects, so I can't use the defaults from Magritte because the
"description" will depend on who is looking.
In Magritte we can customize as high up as we want. My plan right now
is simply not use #asComponent for display, but instead have a
asAComponent for one site and asBComponent for another. Each one
would select a different set of descriptions as described in the link
above.
Another option would be to make a custom component (or perhaps
renderer is better, I haven't looked deeply at this part) that has a
"page" member to show what page is displaying, calls the object side
descriptions but caches the results (it may already work this way) and
so on.
I'm sure others know other tricks, I'm just starting with Magritte.
On 10/22/07, Randal L. Schwartz <merlyn(a)stonehenge.com> wrote:
>>>> "Lukas" == Lukas Renggli <renggli(a)iam.unibe.ch> writes:
Lukas> Do you need the model to be adaptive, so that end users can define
Lukas> questions and model the flow on the fly? Or are the questions and
Lukas> flow hard-coded?
Questions and flow are hard-coded.
Basically, I'm replacing the "booking engine" at
geekcruises.com. Go to
any
cruise, pick "book now", check the check box, and submit.
You'll be in the Perl code that I'm replacing after that. It's safe to paw
through there, all the way to the end, because nothing gets recorded until the
last "book it" hit.
The cabin types depend on the cruise number from the initial request. The
number of detailed passenger infos depends on the number of people given
earlier. And so on. So, the views have to be somewhat dynamic based on
previous questions, and I'm also hitting the database for a few of the things
so I don't want to have to do that repeatedly for the same web hit for the
same query.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn(a)stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See
PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki