cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tuomo Lesonen <tleso...@cc.hut.fi>
Subject Re: Sitemap parameter substitution
Date Tue, 06 Aug 2002 09:46:57 GMT
Yes, it works well, but sometimes causes too much redundance. It would
significantly simplify many sitemaps, if it was
possible to nest those parameters.

I guess I'll just have to find another way to do this. (and probably lose
some managebility on the way)

-Tuomo

On Tue, 6 Aug 2002, Barbara Post wrote:

> As this is not documented this way I guess you only can use {../../1}
> paths... this works well and think of the stack of parameters/maps every
> time you have a map:act... Have a look in core.log, if log level is set to
> debug you'll see how parameters change level....
>
> think of it being a big hamburger :-p
>
> Babs
>
> PS : It IS a big hamburger ! Sorry for joking but Cocoon is so cool...
> --
> website: www.babsfrance.fr.st
> ICQ #: 135868405
> ----- Original Message -----
> From: "Tuomo Lesonen" <tlesonen@cc.hut.fi>
> To: <cocoon-users@xml.apache.org>
> Sent: Monday, August 05, 2002 4:46 PM
> Subject: Sitemap parameter substitution
>
>
> > Hi,
> >
> > Is it possible to nest sitemap parameters in Cocoon? This way: {../{1}} ?
> >
> > Here's an example:
> >
> > <map:match pattern="*">
> >   <map:act type="auth-protect">
> >     <map:parameter name="handler" value="testhandler"/>
> >     <map:select type="parameter">
> >       <map:parameter name="parameter-selector-test"
> value="{../{../../1}}"/>
> >       <map:when test="true">
> > <map:redirect-to uri="foo"/>
> >       </map:when>
> >
> >       <map:otherwise>
> > <map:redirect-to uri="bar"/>
> >       </map:otherwise>
> >     </map:select>
> >   </map:act>
> > </map:match>
> >
> > So I want the selector to use a parameter from the auth-action with a
> > name of the wildcard in the matcher.
> >
> > Thanks in advance.
> >
> > -Tuomo
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question  has not already been answered in the
> > FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> >
> >
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message