Re: [Zope] folder like shortcut / symlink / pointer / urlredirect

2007-10-31 Thread Andreas Jung



--On 31. Oktober 2007 08:21:01 -0800 Ben Bartrum [EMAIL PROTECTED] wrote:


Hello

The DTML code below populates a large menu with folders and their
descriptions, however one of the items in the menu should now point to a
URL on a different server.  I can change the code - for example make it
ordinary HTML, or add the new URL above or below, but I want to know if
it is possible to make a folder-like object that points to the new URL,
and will work with no change to the code below:


Why does it has to be a folder? You can simple add a PythonScript that 
performs an URL redirection if called. You just have to added the script 
and adjust your loop to find folders *and* PythonScript.


-aj

pgpfPZ3JREdNK.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] folder like shortcut / symlink / pointer / urlredirect

2007-10-31 Thread Ben Bartrum
Andreas Jung wrote:
 Why does it has to be a folder? You can simple add a PythonScript that
 performs an URL redirection if called. You just have to added the script
 and adjust your loop to find folders *and* PythonScript.


Thanks - I ended up putting only dtml-call 
RESPONSE.redirect('http://www.example.com') in the index.html inside the 
relevant folder.


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )