You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Otmar Vobejda <ot...@hcwerk.cz> on 2003/12/19 02:41:35 UTC
sitemap circular reference
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
Re: sitemap circular reference
Posted by Otmar Vobejda <ot...@hcwerk.cz>.
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