Hi,

I was looking for a file manager and found webfm wich is a geat one.

I think many people can face my use case : I want to attach all files in a folder to a node.

Thanks to Webfm, I can attach them with a right click. But what about adding a button near the ones joined to this post which will give the abillity to "Attach files in this folder to current node" ?

Is there a pending patch or a cvs version which already includes this feature ?

Tks !

Comments

cgmonroe’s picture

When you say "attach all files in a folder to a node", do you mean:

Attach only the files that are CURRENTLY in this folder and attach them to a node.

or do you mean:

Take all files that are in a folder, now and in the future, and attach them to a node. I.e., if files are deleted or added to the directory via webfm, the attached file list will change based on the folder contents.

In the case of the former, I don't think there is a solution in the code.

In the case of the later, a partial solution might be to use the patch to add a custom_layout function (URL below). Then use some theme code to add the output from the custom_layout function to add the correct directories to the nodes you want. Not ideal but it lets you have nodes with directories attached.

Custom Layout Patch: http://drupal.org/node/736548