How do you do a simple relocate?
Ok, first of all - I'm new to Zope (1 week). Now, what I'm trying to do is relocate from one page to another. Something very simple, such as if a user comes to a certain page, based on some variable, the user will be relocated to another page. I can do a server side include, but this really isn't what I wanted. Any help would be appreciated. Thanks in advance, Tommy _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
<dtml-call "RESPONSE.redirect('some form of url goes here')"> ----- Original Message ----- From: "Tommy Johnson" <astlj@hotmail.com> To: <zope@zope.org> Sent: Tuesday, May 01, 2001 11:53 PM Subject: [Zope] How do you do a simple relocate?
Ok, first of all - I'm new to Zope (1 week). Now, what I'm trying to do is relocate from one page to another. Something very simple, such as if a user comes to a certain page, based on some variable, the user will be relocated to another page.
I can do a server side include, but this really isn't what I wanted.
Any help would be appreciated.
Thanks in advance, Tommy _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hi Tommy, Here's something that will send the user to an alternate page based on his identity. <dtml-if "REQUEST['AUTHORIZED_USER'].getUserName() == 'admin'> <dtml-call "REQUEST.RESPONSE.redirect('http://another/page/somewhere')"> </dtml-if> Tommy Johnson wrote:
Ok, first of all - I'm new to Zope (1 week). Now, what I'm trying to do is relocate from one page to another. Something very simple, such as if a user comes to a certain page, based on some variable, the user will be relocated to another page.
I can do a server side include, but this really isn't what I wanted.
Any help would be appreciated.
Thanks in advance, Tommy _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hey, something like that could be used to hide ugly debug error info from non-mananger/owner users?!
From: Chris McDonough <chrism@digicool.com> Date: Tue, 01 May 2001 18:58:57 -0400 To: Tommy Johnson <astlj@hotmail.com> Cc: zope@zope.org Subject: Re: [Zope] How do you do a simple relocate?
Hi Tommy,
Here's something that will send the user to an alternate page based on his identity.
<dtml-if "REQUEST['AUTHORIZED_USER'].getUserName() == 'admin'> <dtml-call "REQUEST.RESPONSE.redirect('http://another/page/somewhere')"> </dtml-if>
Tommy Johnson wrote:
Ok, first of all - I'm new to Zope (1 week). Now, what I'm trying to do is relocate from one page to another. Something very simple, such as if a user comes to a certain page, based on some variable, the user will be relocated to another page.
I can do a server side include, but this really isn't what I wanted.
Any help would be appreciated.
Thanks in advance, Tommy _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Chris McDonough -
marc lindahl -
Phil Harris -
Tommy Johnson