cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conal Tuohy" <>
Subject how to call a view?
Date Tue, 04 Mar 2003 07:01:06 GMT
I'm planning to implement a Lucene-based search, so I've been reading up on

It seems to me that a view can be selected just by adding
"?cocoon-view=some-view" to the URI. I've tried this and it's all OK.

But the documentation hints that there's another way, which I don't quite
understand (see bottom of

>Suggestions for further accessing views are:
>React on a "variant" HTTP header (nothing cocoon specific
>since the concept could be impelemented later on by other
>publishing frameworks).
>React on URI extension: for example http://host/path/file.view,
>that is something that can be done by configuring the sitemaps
>manually. (where http://host/path/index is the default
>resource, and index.content is the XML view of the content).

"configuring the sitemaps manually"? Can anyone explain how these 2
suggestions should be implemented? Would I need to have something like this?

<map:match pattern="**/*.*">
	<map:redirect-to uri="cocoon:/{1}/{2}?cocoon-view={3}"/>



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message