![]()
From: Bill Moseley (moseley@hank.org)
Date: Sat Dec 29 2001 - 00:44:01 CST
I think I need a new cookie. I need one that will help me create relative
links back to the top level directory when using folders to spread out the
archive.
The problem is I'm using the same template file for more than one archive.
When all files are in the same directory I can simply use relative links in
the template file and everything works (and the archives are relocatable),
and same the templates can be used for a number of lists.
So, what would be helpful is something like %t which is a relative path to
the top level directory. So, if say in my config dir = foo
when in ./foo %t = "." and I can build a link %t/search.cgi
when in ./foo/2001/52 (year/week) %t = "../.." and %t/search.cgi
still works because it I end up with "../../search.cgi"
The same problem happens with "Other mail archives" link.
I can set the "dir" config option to an absolute path, and use the cookie
"%~", but then the archive is not relocatable.
I can try to hack this myself, but I'm not sure where to start in the
source. I'd just need a "depth" count and a place to hook in a new cookie.
Any suggestions?
Thanks,
-- Bill Moseley mailto:moseley@hank.org
![]()