Closed (works as designed)
Project:
Web File Manager
Version:
6.x-2.9-alpha2
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Aug 2008 at 13:15 UTC
Updated:
13 Apr 2009 at 20:47 UTC
Comments
Comment #1
zajoch commentedI have same question - link to directory in webFM?
I need from menu access direct to subdirectory in webFM.
Comment #2
JohnT commentedI 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?
Comment #3
janborc commentedHas anyone figured this thing out?
Comment #4
robmilne commentedDirectories 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.
Comment #5
cmgui commentedI 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?