If you want subdirectories to be collapsed on page load, you'll have to make a minor ajustment to your theme, especially header.php. You'll have to add wplfCollapseAll() to the body tag's onload attribute, so that it looks something like this:
<body onload="wplfCollapseAll()">
Or this:
<body onload="someFuntion();wplfCollapseAll()">
/linkto is useful if you want to play with .htaccess and mod-rewrite and you want your files to appear "inside" a page.
For instance, you use 'nice' permalinks and you have a page /files/ that lists a buch of files and want those files to be accessible like /files/image.jpg. Since the directory "/files/" doesn't really exist (it's a WordPress page, after all), you'll have to put those files somewhere else.
In this case, you could insert
<!--list files "/path/to/files" "/files"-->
in your post or page, and a rewrite rule in your .htaccess that would look something like this:
RewriteRule ^files/(.+)$ /path/to/files/$1 [L]
That would generate a list of all the files in /path/to/files, and make the links point to /files, so /path/to/files/image.jpg would be linked as /files/image.jpg. The rewrite rule will then translate that back to /path/to/files/image.jpg, and the webserver will serve the user that file.
Copyright (c) 2007-2008 Colin Helvensteijn <helvensteijn.com>
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.




