cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mats Norén <mats.no...@spectral.se>
Subject Re: Sitemap question
Date Thu, 18 Jan 2001 12:25:00 GMT
Ok, that works!
The thing is that I wanted to do a redirect inside the sitemap to another
matching rule depending on if the user is logged in or not.
Doesn´t the filegenerator src-attribute point towards a file and not an url?

/Mats

Giacomo Pati wrote:

> Mats Norén wrote:
> >
> > More questions ;-)
> > I would like to be able to use my login-action to switch between two
> > different urls based on if the user has logged in or not.
> > I guess I could use a selector based version instead but I'm just curious
> > why the following doesn't work:
> >
> > <map:match pattern="subscribe/login.html">
> >      <map:act type="login">
> >          <parameter name="logged_in" value="/cocoon/forms"/>
> >          <parameter name="not_logged_in" value="/cocoon/welcome"/>
> >      </map:act>
> >      <map:redirect-to uri="{uri}"/>
> >  </map:match>
>
> Try it this way (there is no substitution of values in the uri attribute
> of the redirect-to element):
>
>  <map:match pattern="subscribe/login.html">
>       <map:act type="login">
>           <parameter name="logged_in" value="forms.xml"/>
>           <parameter name="not_logged_in" value="welcome.xml"/>
>           <map:generate src="{uri}"/>
>       </map:act>
>   </map:match>
>
> Giacomo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message