On Tue, 7 Nov 2000, Danny William Adair wrote:

> How can I suppress the URL generation in the management screens? I've seen
> the "Z" folder example but it didn't work for me. Everything is fine except
> the management interface.

This example works when you leave blank all properties in your SiteRoot
object (especially 'Path', which is '/' by default). Then you have to
generate SiteRootPATH dynamically. So your 'Set Access Rule Method'
may look like:

Is there a path, and does it start with 'Z'?
<dtml-let stack="REQUEST['TraversalRequestNameStack']">
 <dtml-if "stack and stack[-1]=='Z'">
  Get rid of 'Z':     <dtml-call "stack.pop()">
  Put it back logically: <dtml-call "REQUEST.setVirtualRoot('Z')">

Is the first-level domain 'hotsite.com'? Ignore sub-domains and port number.
<dtml-if "_.string.split(_.string.lower(_.string.split(HTTP_HOST, ':')[0]),'.')
 Add physical root: 
 <dtml-call "REQUEST['TraversalRequestNameStack'].append('yourFolder')">
 <dtml-call "REQUEST.set('SiteRootPATH','/')">



| `long long long' is too long for GCC |

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to