How to force root context thru URL acquisition?
I have a simple DTML Method, Dig, which produces a sitemap by recursively digging into objectValues. I keep this at the root level of our site so that I can give it a URL like http://foo.com/about/stencils/Dig and get a sitemap of everything in & below /about/stencils However, my root dir is getting very full, so I was moving some administrative tools to subfolders where they are used. I want to move Dig to the admin folder. If I do this, I can still get a sitemap of stencils, now with http://foo.com/admin/about/stencils/Dig (assuming that admin doesn't have an about section, of course) However, how do I get a sitemap of the whole site? How can I put into the URL that I want to go back to the top? a) I know I can crete a DTMLDocument that does something like <dtml-with "PARENTS[-1]"><dtml-var Dig></dtml-with>. I want to do this in the URL, not have to create a special method for root digging. b) I tried creating an object in the admin folder to represent the root level. This was called "root", and contained <dtml-return "PARENTS[-1]"> but if I try http://foo.com/admin/root/Dig I don' get anything. Any ideas? Thanks! -- Joel Burton <jburton@scw.org> Director of Information Systems, Support Center of Washington
Have a look at Transparent Folders: http://www.zope.org/Members/hathawsh/TransparentFolders Cheers. -- Andy McKay. ----- Original Message ----- From: "Joel Burton" <jburton@scw.org> To: <zope@zope.org> Sent: Friday, July 06, 2001 8:53 AM Subject: [Zope] How to force root context thru URL acquisition?
I have a simple DTML Method, Dig, which produces a sitemap by recursively digging into objectValues. I keep this at the root level of our site so that I can give it a URL like
http://foo.com/about/stencils/Dig
and get a sitemap of everything in & below /about/stencils
However, my root dir is getting very full, so I was moving some administrative tools to subfolders where they are used. I want to move Dig to the admin folder. If I do this, I can still get a sitemap of stencils, now with
http://foo.com/admin/about/stencils/Dig
(assuming that admin doesn't have an about section, of course)
However, how do I get a sitemap of the whole site? How can I put into the URL that I want to go back to the top?
a) I know I can crete a DTMLDocument that does something like
<dtml-with "PARENTS[-1]"><dtml-var Dig></dtml-with>.
I want to do this in the URL, not have to create a special method for root digging.
b) I tried creating an object in the admin folder to represent the root level. This was called "root", and contained
<dtml-return "PARENTS[-1]">
but if I try
I don' get anything.
Any ideas?
Thanks!
-- Joel Burton <jburton@scw.org> Director of Information Systems, Support Center of Washington
_______________________________________________ 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 )
On Fri, 6 Jul 2001, Andy McKay wrote:
Have a look at Transparent Folders: http://www.zope.org/Members/hathawsh/TransparentFolders
Cheers. -- Andy McKay.
Works great! For those that don't know this product, this allows me to put my tools in a TransparentFolder (called "tools" or somesuch), so they don't clutter my top-level folder. Now, I can call http://foo.com/widgets/stencils/Dig and it actually gets Dig from tools/Dig, 'coz tools is transparent. Thanks, Andy! -- Joel Burton <jburton@scw.org> Director of Information Systems, Support Center of Washington
You could try making /stencils a Transparent Folder (Shane's product), then you shouldn't have to change anything.
From: Joel Burton <jburton@scw.org> Date: Fri, 6 Jul 2001 11:53:58 -0400 (EDT) To: zope@zope.org Subject: [Zope] How to force root context thru URL acquisition?
I have a simple DTML Method, Dig, which produces a sitemap by recursively digging into objectValues. I keep this at the root level of our site so that I can give it a URL like
http://foo.com/about/stencils/Dig
and get a sitemap of everything in & below /about/stencils
However, my root dir is getting very full, so I was moving some administrative tools to subfolders where they are used. I want to move Dig to the admin folder. If I do this, I can still get a sitemap of stencils, now with
http://foo.com/admin/about/stencils/Dig
(assuming that admin doesn't have an about section, of course)
However, how do I get a sitemap of the whole site? How can I put into the URL that I want to go back to the top?
a) I know I can crete a DTMLDocument that does something like
<dtml-with "PARENTS[-1]"><dtml-var Dig></dtml-with>.
I want to do this in the URL, not have to create a special method for root digging.
b) I tried creating an object in the admin folder to represent the root level. This was called "root", and contained
<dtml-return "PARENTS[-1]">
but if I try
I don' get anything.
Any ideas?
Thanks!
-- Joel Burton <jburton@scw.org> Director of Information Systems, Support Center of Washington
_______________________________________________ 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 (3)
-
Andy McKay -
Joel Burton -
marc lindahl