Robert Goene wrote:
Hi,
Can you give me some help with the publets? I am trying to call a publet
with a cinclude statement, but it is not really working out.
I want to include all navigation components with cincludes instead of
the aggregate function, for instance:
<cinclude:includexml>
<cinclude:src>cocoon://publets/sitetree/default/live/search/dummy.xml</cinclude:src>
That should read
cocoon://publets/sitetree/default/live/search/dummy.html.xml
(mind the .html)
</cinclude:includexml>
I am not sure what i am doing wrong. Can you point me in the right
direction?
More general: are there any reasons why i should not use the cinclude
transformer to include all navigation components for the search usecase?
Even more general - I'm not quite sure if a usecase is the right approch.
I'd rather start with a resource type. Actually there is a search resource
type in 1.4. (File -> new search page).
Usecases are rather orthogonal to CMS pages, by now they're not designed
to be used as normal pages. The search page should behave like a typical
CMS page, so it will be quite difficult to implement it as a usecase.
Using a resource type, you don't have to care about aggregating the
navigation components, because what you deliver is just a document
(content), not a complete page.
I do not like the approach of using an aggregate and a seperate pipeline
for the search generator.
Exactly, it wouldn't make sense to duplicate this functionality.
With the use of the cincludes, there is one
xslt sheet that takes care of the composition of the xml and one xslt
sheet that takes care of the xhtml rendering. IMO, the one thing cocoon
suffers from is the fragmented composition of the xml trees, something
that must be avoided whenever possible.
Why do you think so? IMO modularization of XML composition is rather
a good thing, if properly cached.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]