cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Evans <jon.ev...@misgl.com>
Subject Re: Portal Engine bookmarks
Date Fri, 20 Feb 2004 13:28:50 GMT
Hi David,

On 20 Feb 2004, at 13:06, DAYD3@Nationwide.com wrote:

> I've found that by using the cocoon:// "Internal" protocol, the 
> redirect
> takes place internally and
> not on the client side.  You might try:
>
> <!-- Handle app?id=123 by redirecting to a
>       bookmark URL which does the right thing -->
>     <map:match pattern="app">
>      <map:redirect-to uri="cocoon://bookmark?top=0&amp;leftnav-home=0
>         &amp;home-apps=1
>         &amp;app1={request-param:id}
>         &amp;app2={request-param:id}"/>
>     </map:match>

Actually I couldn't get that to work (it produces a blank page), but 
this works fine:

<map:match pattern="app">
   <map:generate src="cocoon://bookmark?top=0&amp;leftnav-home=0
       &amp;home-apps=1
        &amp;app1={request-param:id}
        &amp;app2={request-param:id}"/>
   <map:serialize type="html"/>
</map:match>

I also tried <map:read src="..."/> but that didn't work either (Firefox 
complains about the HTML).

Thanks,

Jon

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


Mime
View raw message