cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <>
Subject Re: Sitemap question
Date Wed, 17 Jan 2001 19:45:24 GMT
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}"/>


View raw message