[Zope] SiteAccess guidelines
Evan Simpson
evan@4-am.com
Sat, 15 Jan 2000 09:46:01 -0600
Alexander Limi wrote:
> But there is one problem: It still rewrites the root folder to go to the
> "artists" folder, which I don't want.
Whoops, had my logic a little misarranged. Try this instead (now with
annotations!) :
<dtml-let path="REQUEST.path">
<dtml-if path>
There is a path
<dtml-if expr="path[-1]=='Z'">
'/Z/...' explicitly forbids redirection to 'artists'
<dtml-call expr="path.pop()">
<dtml-call expr="REQUEST.setURL(path='Z')">
<dtml-elif expr="path[-1] in objectIds()">
Don't redirect existing objects
<dtml-else>
Everything else goes to 'artists'
<dtml-call expr="path.append('artists')">
<dtml-call expr="REQUEST.set('SiteRootPATH', '/')">
</dtml-if>
</dtml-if>
</dtml-let>
Cheers,
Evan @ 4-am