cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Densmore <TDensm...@witness.com>
Subject RE: how to call a view?
Date Tue, 04 Mar 2003 19:24:41 GMT
label the transform with the view name, then call it by appending
@cocoon-view=(labelname) in the request

-----Original Message-----
From: Conal Tuohy [mailto:conalt@paradise.net.nz]
Sent: Tuesday, March 04, 2003 2:22 PM
To: Cocoon Developers (E-mail)
Subject: FW: how to call a view?


I had no luck with this message on Cocoon Users ... I'm wondering if anyone
here can answer this question about other ways to call a view?

Thanks!

-----Original Message-----
From: Conal Tuohy [mailto:conalt@paradise.net.nz]
Sent: Tuesday, 4 March 2003 20:01
To: Cocoon Users (E-mail)
Subject: how to call a view?


I'm planning to implement a Lucene-based search, so I've been reading up on
Views.

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
http://xml.apache.org/cocoon/userdocs/concepts/views.html):

>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}"/>
</map:match>

Cheers!!!

Con


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message