Hi!
I have 2 questions!

1. I would like to be to link to one specific directory in my webFM hierarchy and see the files listed. Is that possible? I know how to do get the url for a file but can´t find how to get it for a directory.

2. I have enabled the block for showing the WebFM attatchments, but nothing happens. Probably a simple solution for this but I can´t seem to find it. What am I missing?

Comments

zajoch’s picture

I have same question - link to directory in webFM?
I need from menu access direct to subdirectory in webFM.

JohnT’s picture

I have the same question - I'd love to be able to deep-link into the folders, but I can't see a clear way to do so. Is there a way to set an html form to deep link to a specific folder?

janborc’s picture

Has anyone figured this thing out?

robmilne’s picture

Status: Active » Closed (works as designed)

Directories are not associated with urls so there isn't any way to navigate directly to them. The next best thing is to create a module that presents the contents of a directory programmatically. If you dig into the module there is a class called 'webfm_build_dir_list' that has accessors to file and directory arrays as well as breadcrumb (path). This class is called when the module builds the output for the browser but it can just as well be used to build a table of files and directories in a nodetype, etc.

cmgui’s picture

I would also like to able to link to a directory.

Writing a module and making use of the webfm_build_dir_list to list the contents in a node is not the same.

What is needed is http link to a directory in webfm -- i.e. /webfm_dir/dir1/subdir1 will launch webfm with teh dir1/subdir1 opened. This is different from listing the contents in a drupal node, etc.

I tried this in the hook_menu in webfm.module
$items['webfm_dir'] = array(
'title' => 'Web File Manager',
'page callback' => 'webfm_dir',
...

function webfm_dir ( $a='',$b='',$c='',$d='',$e='' ) {

$_POST["action"] = 'read';
if ( trim($a) != '' ) {
$_POST["param0"] = '/' . $a;
}
if ( trim($b) != '' ) {
$_POST["param0"] .= '/' . $b;
}
if ( trim($c) != '' ) {
$_POST["param0"] .= '/' . $c;
}
if ( trim($d) != '' ) {
$_POST["param0"] .= '/' . $d;
}
if ( trim($e) != '' ) {
$_POST["param0"] .= '/' . $e;
}

webfm_ajax();

...

does not work.

the webfm display is done by the javascript file js/webfm.js

yeah, maybe it is just not possible.
the ability to link to a directory is very useful, don't you think?