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 Tue, 23 Jan 2001 14:13:44 GMT
I have a major problem with the example you showed me. It doesn´t work. :-)

The substitution of the {uri} from the map doesn´t work at all. I keep
getting a null value back to the sitemap.
Any suggestions?

/Mats

Giacomo Pati wrote:

> --- Mats Norén <mats.noren@spectral.se> wrote:
> > 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?
>
> Yes.
>
> Giacomo
>
> > /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
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
>
> =====
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message