Sharing files feature with Drupal using disknode
CONSEN - January 1, 1970 - 00:00
We are a bit tired to listen people saying that Drupal CMS doesnt have a good system for sharing files.
A step forward in solving this weak point, we have used disknode as web browser and manager of files and folders.
The way is simple but require more work on the code to improve the features, interfaces and usability.
1) Write a link as, button or simply a href="/disknode/browse?subdir=Documents/News in a html node.
You have the code in the example
2) change the line 70 of the disknode file disknode.browse.tpl.inc
// echo "
· filename)."')\" ".($entry->dbentry?"class=\"exists\" title=\"This file is already assigned to a node\"":"title=\"Select this file\"").">".$entry->basename."
echo "
· filename)."\" ".($entry->dbentry?"class=\"exists\" title=\"This file is already assigned to a node\"":"title=\"Select this file\"").">".$entry->basename."
3) Optional: add to disknode.js the function to open new window.
function newWin(pageURL,pageName,W,H) {
pageProp = "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+W+",height="+H;
window.open(pageURL,pageName,pageProp);
}
------------------
The code files and the example running is in
http://www.consen.info/disknode/browse?subdir=Documents
------------------
The next challenges:

a) Integrate the current (FIREFOX new tab) browsering in the block content (Drupal central layout) as other node. It should be perfect integrate in the attachment/upload option of the node.
b) In new tab browsering have two vertical frames for folder browsering in the left and files operations in the right.
c) provide permissions for browsering folders and actions by roles, without to create different sections and folders as in our current example.
d) Add the required code to be able to insert the URL in the menu as a normal node path (one unique and direct click from the menu).
e) Add an optional text-field (50ch) to describe the file
f) It should be incredible, to have also a search files system.

Comments

tain’s picture

Demo link is broken. Interesting idea, though. I currently use the filebrowser module.