Closed (fixed)
Project:
Filebrowser
Version:
6.x-2.0-rc7
Component:
Directory Listing Pages
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Feb 2009 at 15:11 UTC
Updated:
4 May 2009 at 01:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rickyniano commentedScreenshots illustrating the problem. "filebrowser1.png" image shows the "This directory is empty." message. When you click on the node title ("Programaciones"), you can see the directory contents, as in "filebrowser2.png" file. The directory is not empty, of course.
Comment #2
rickyniano commentedI've solved the issue fixing the filebrowser_view() function:
Find the following block of code:
// Grab various Drupal paths.
$path_alias = drupal_get_path_alias('node/' . $node->nid);
// Handle both aliased and non-aliased cases.
$subdir = str_replace($path_alias, '', $_GET['q']);
$subdir = str_replace('node/' . $node->nid, '', $_GET['q']);
$curr_dir = $node->file_path . $subdir;
and append the following line of code just below:
$curr_dir = $subdir == 'node' ? $node->file_path : $curr_dir;
The problem is that $curr_dir incorrectly appends the suffix 'node' when you're viewing the front page (http://www.example.com/node).
Comment #3
rickyniano commentedPatch against the 6.x-2.0-rc5 release.
Comment #4
Yoran commentedI changed the way of this module is handeling teasers. Basicaly I don't really see the point of showing any file listing in the front page. So I added a "description" field in the node that I use as a teaser. If no description is given, the module can also used description from meta data files (.bbs or .ion).
Tell me what you think about this.
Comment #5
Anonymous (not verified) commented... the text from the descript.ion file (
. text) isn't shown.Comment #6
Yoran commentedHum.. It's working here, If I have no description for the node, the ". text" is used for both teaser and full view. Did you try to browse the filebrowser folder itself to test ? Is your description is fully empty (no spaces, crlf, etc.) ?
Comment #7
Yoran commented