[Zope-CMF] Question on Redirecting using the Logged_in form

hapfire2000 slane@pa.aacisd.com
Mon, 17 Jun 2002 14:07:22 -0000


I have been working on redirecting a user from the login page 
directly to their "My stuff" page once they click on the "log in" 
button and are authenticated.  I can get it to work in the dtml
(generic) logged_in form by modifying it.
Example below:



ORIGINAL:
<!-- ****** Enable the automatic redirect ***** -->
<dtml-if name="came_from">
<dtml-call expr="RESPONSE.redirect(came_from)">
</dtml-if>
<!-- ****** Enable the automatic redirect ***** -->



MODIFIED:
<!-- ****** Enable the automatic redirect ***** -->
<dtml-call expr="RESPONSE.redirect
('http://myserver/theportalname/Members/'+AUTHENTICATED_USER.getId()
+'/folder_contents')"> 
<!-- ****** Enable the automatic redirect ***** -->



I deleted the conditional statement due to that it would cause an 
error, but w/o it it works 100%.  

The problem is when I try to do the same thing in the ZPT generic 
logged_in form.  I cant seem to get it to work. I keep getting 
errors. If you could please help/show me how to do it, just like i 
did in my example using the original and then modified. I would 
greatly apprecate it and I thank you in advance.