cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobia Conforto <>
Subject Re: Error while evaluating 'cocoon:/{../1}/...not so many levels
Date Mon, 23 Jul 2007 14:10:57 GMT
Vaduvoiu Tiberiu wrote:
> in my parent sitemap I have
> <map:match pattern="*/*/*/*">
>   <map:mount check-reload="yes" uri-prefix="{1}/{2}/{3}" src="{3}/sitemap.xmap" />
> </map:match>
> and in my sub-sitemap I have:
> <map:match pattern="home.htm">
>   <map:aggregate element="root" label="source">
>     <map:part element="menu" src="cocoon:/{../1}/{../2}/menu.xml"/>
>   </map:aggregate>

You can't access sitemap parameters across sitemaps.

I can see two solutions to your problem:

1) take off that  uri-prefix="{1}/{2}/{3}"  from the mount command and
modify all matchers of all sub-sitemaps to deal with the extra URL


2) modify that particular matcher in the sub-sitemap to match agaist the
full request URI, which you can get for example with {request:requestURI}

The first solution seems more "correct", but of course it depends on
your particular sitemap layout.

Also I don't know exactly how to do the latter point.
I'd wager there is a matcher somewhere that you can use with input
modules (the {request:...} thing is an input module.)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message