Our client requested being able to see the metadata title (ftitle) in the file browser instead of the filename. This patch adds this features as a configurable option via the settings page. When activated, files that have an ftitle will display as their title, and files which do not have any metadata will display as their filename. Also, when activated, the "Rename File" option in the contextual menu is disabled because it causes confusion with the client as well as can lead to unexpected results.

Place this patch in your sites/all/modules folder (or wherever your webfm directory is located) and run

    patch -p0 < webfm-ftitle.patch

--
B.McMurray

CommentFileSizeAuthor
#1 webfm-ftitle2.patch5.09 KBbmcmurray
webfm-ftitle.patch4.27 KBbmcmurray

Comments

bmcmurray’s picture

StatusFileSize
new5.09 KB

Oops, I forgot to include a variable pass-through into the WebFM Browser area in hook_form_alter for editing nodes; this new patch replaces my last in entirety and adds the fix hook_form_alter.

Apply it the same as above:

Place the patch in your sites/all/modules folder (or wherever your webfm directory is located) and run

patch -p0 < webfm-ftitle2.patch

via the command line.

--
B.McMurray

robmilne’s picture

This patch is relative to 2.1 only. I didn't see this issue until after I tagged so you will have to rework the patch to work in 2.2 - sorry.

robmilne’s picture

Status: Needs review » Fixed

Currently in head - soon to be released.
Rename in context menu still available for files that have no ftitle.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.