Imagine a node body/cck containing a link to open the wfm in the directory specified by a string argument in the url.

For instance ...

www.example.com/webfm/audio/artist/beetles would open the webfm at the relative root to /audio/artist/beetles.

Further extension of this method could also apply to the way in which the webfm is displayed (e.g. ../webfmdirectoryautozipper/rootargument or ../webfmmediaplayer/rootargument or ../webfmfancypdfviewer/rootargument.)

Indeed to address single files we'd just have webfmformatter/rootargument/file.ext (so ../webfmaudioplayer/music/joes-favourites/a-song-of-songs.mp3 would open the webfm page and the show the file ready to play in the webfm using the preset audio player).

Views and other modules could write plugins for their own upload methods (filefield, upload core, audio field etc) such as ...

Display formatter (e.g. 1-pixel out player plus link to webfm directory)
Archives directory view (e.g. show a link from a file in a view to the webfm directory)
Webfm block (scans for links to webfm enabled directory and shows all links to the webfm directory in a block)

Food for thought?

Comments

cgmonroe’s picture

FWIW - I actually started a webfm node module to go with this patch:

http://drupal.org/node/736548

But unfortunately, my free time to do it has evaporated... The basic design was similar, have a webfm content-type that automatically create a webfm subdirectory when it was created. Rights to DL files would be based on node access rights. Possibly, rights to upload files would be tied to Node edit rights. Had the create a directory thing working but ran out of time in figuring out the right security model.

My basic thought was that a "file store" node type would fit into Drupal's normal security/taxonomy/creation/og format than the regular WebFM would. E.g. need to share files in OG, just add the webfm node type to the OG content types. Maybe I'll find time to get back to this eventually.

That said, the patch above adds a "custom_layout" function that makes have a WebFM display a specific directory easy. You can use this to manually create at least the directory node part of what you are looking for or create custom blocks that do similar stuff.

FWIW - I think the URL extension to point to a file would require a fair amount of rewriting... hmm.. unless we tapped into pathauto aliasing and autoaliased the normal url to that format.