My client requested that attachments open in new windows (target="_blank") instead of their own window so here is a quick patch to add the _blank target to the links in the WebFM provided Attachment block.

place the patch in your webfm module folder and run the following code from the terminal:

patch -p0 < webfm-target.patch

Hope this helps anyone else who might need or desire this functionality. I'd like to flesh this out more and make it a configurable option in the WebFM Settings, but haven't had the chance to, yet.

CommentFileSizeAuthor
webfm-target.patch1.02 KBbmcmurray

Comments

robmilne’s picture

Status: Active » Fixed

This feature has been added to 5.x--2-2

Anonymous’s picture

Status: Fixed » Closed (fixed)

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