cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otmar Vobejda <ot...@hcwerk.cz>
Subject Re: sitemap circular reference
Date Fri, 19 Dec 2003 01:49:33 GMT
I have it, it can be done just by pattern "**file/*". But why doesn't 
work previous example? It looks like correctly in my opinion.

osup

Otmar Vobejda wrote:

> Hi,
>
> I'd like to make in the sitemap feature, that if you will call url 
> "file/123" or "blabla/file/123" or "bla/bla/bla/file/123", it will use 
> databasereader everytime. I think, it could be done by this code, but 
> that doesn't work (browser calls too much redirections). Why?
>
>            <map:match pattern="**/file/*">
>                <map:redirect-to uri="file/{2}"/>
>            </map:match>
>
>            <map:match pattern="file/*">
>                <map:read type="databasereader" src="{1}" 
> mime-type="plain/text">
>                    ...
>                </map:read>
>            </map:match>
>
> Thanx a lot!
>
> osup
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>



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


Mime
View raw message