cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alten, Jelle Paul (sds-sp)" <jelle.paul.al...@ordina.nl>
Subject RE: sitemap circular reference
Date Fri, 19 Dec 2003 09:11:10 GMT
Hi Otmar,

Try changing the order, first the "file/*" followed by the "**/file/*" 
It doesn't answer your question but it will solve your problem.

Jelle

-----Oorspronkelijk bericht-----
Van: Otmar Vobejda [mailto:otmar@hcwerk.cz]
Verzonden: vrijdag 19 december 2003 2:50
Aan: users@cocoon.apache.org
Onderwerp: Re: sitemap circular reference


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

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


Mime
View raw message