Andreas Hartmann wrote:
Jörn Nettingsmeier wrote:
out of curiosity, can you explain what problems you are anticipating
when doing it as a usecase, and what those special confs and
conventions are?
At the moment, usecases are designed to occupy the whole page.
All elements outside the "main" usecase GUI (usually a form) are
included (like the site tree in the site area etc.). I don't think
that this will be easy to change, because usecases are invoked
by the core sitemaps before entering any publication-specific
sitemaps.
hmmm. that seems to be true for the "traditional" usecases. however,
there is an alternate usage pattern as described on solprovider's page:
http://solprovider.com/lenya/multiple
i'm not sure if this sort of thing should be encouraged in 1.4, but it
does work (i've been using it for a while), although it bypasses almost
all of the usecase framework...
I see the following options:
a) provide a hook for publications to make their layout available
for usecase view post-processing, e.g. using a dynamically
generated XSLT
not nice. an "embedded" usecase view (as opposed to the current
full-screen ones) should retain the control over flow and continuations,
but use the normal publication pipelines and only inject its own div#body.
which is exactly what a resource type does... so maybe that's the
cleanest approach after all.
b) allow to handle usecases by publications
in a way, that is done if you use solprovider's approach.
c) tie usecases to documents, i.e. a document calls a usecase
and displays its output (that would be a kind of
"usecase resource type")
would work for simple stuff, but where does the flow control go?
IMO option c) sounds best, because it doesn't require any
additional concepts but leverages the existing concepts in a
nice way.
sure, but sounds like a can of worms, and definitely post 1.4 stuff.
The second problem is about the fact how usecases are invoked.
When usecases were introduced, they only had the purpose to
implement CMS functionality, i.e. functionality which wouldn't
be available to site visitors. That's why we agreed on a calling
convention to keep things simple, without providing the option
to configure or override it:
?lenya.usecase=...
In my personal opinion, we shouldn't require that "end-user"
functionality like search pages uses this calling convention.
isn't that covered in part by your recent patch
(http://svn.apache.org/viewvc?rev=412982&view=rev) ?
--
"Open source takes the bullshit out of software."
- Charles Ferguson on TechnologyReview.com
--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]