Download & Extend

Webfm 6.x does not have views capability

Project:Web File Manager
Version:6.x-2.9-alpha2
Component:Code
Category:bug report
Priority:normal
Assigned:Frank Steiner
Status:closed (fixed)

Issue Summary

I know views worked just great for me in Drupal 5.9.
At this point however there is no views integration for webfm 6.x

Currently views for Drupal 6.x shows "Broken or missing handler" when trying to import the views from the webfm 5 version.

Comments

#1

true

#2

Assigned to:Anonymous» Frank Steiner

This is not easy to do because the code must be completely rewritten for views 2. I'll try to look at this, but it will take quite a while to get sth. running. If someone is willing to help, please stand up :-)

#3

Status:active» needs review

Hi,
it's horrible to convert the old views code to the new views 2 api without any "how to convert" documentation and this is my first try to write a view at all, so be patient please :-)

I just hacked a little first try just to see if I understand the new api somehow. It should allow you to select the webfm filename, with or without download link (chose in the options), nothing else yet.

Please let me know if that works as you expect it. I don't have drupal 5, so I can't test the old views functionality.

cu,
Frank

AttachmentSize
webfm_views2_first.patch 16.46 KB

#4

Hi Frank,

Will this patch work with the new release of webfm(rc-4) ? Since it's been a long time you have provided it. If yes then can you provide us the revised patch. It's quite a urgent thing for me.

Please reply asap.

#5

Well, just try it and see if it works. If yes, I'll try to get the rest done.

#6

Thanks Frank, for such a quick reply. Will try it myself and revert back to you.

#7

Hi Frank,

I tried the patch. I have got to know two things.
- It's not against the latest release(rc-4) of the module. It throws error while patching.
- Some changes here and there I have been able to apply the patch successfully, but the in views doesn't show the webfm attachments.

Can you check this out at your end ? It will be very helpful.

Please answer asap.

Thanks.

#8

Title:Webfm 6.x does not have views capability» subscribing

subscribing

#9

Title:subscribing» Webfm 6.x does not have views capability

It does apply to -rc4 as this is what I'm using, but I don't see it either anymore. I'll try to look into this, but it will take some time, I'm quite busy at the moment getting out site launched.

#10

subscribing, as I'm interested in this as well.

#11

subscribing

#12

Hey guys, i need this feature too.
Can anyone let me know if is there a patch working fine with drupal 6 and the leatest webfm and views modules?

#13

subscribe

#14

Full views integration with ongoing upgrades would be wonderful. Right now I like using webfm very much, but now that I have over a thousand files, having full views integration would make listing and sorting these files so much better than it is right now.

I applied the patch on top of webfm 6.x.2.10-rc4 and when I clicked add in the views (6.x-2.5) module it fails with:
Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/webfm/webfm_views.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/stilbla0/public_html/sites/all/modules/webfm/webfm.module on line 2885

I suggest changing status to needs work.

#15

subscribing

#16

Would this allow for the addition of a custom header? I assume so.

subscribing

#17

Error upon my attempt to patch:

patch < webfm_views2_first.patch.txt
patching file webfm.module
Hunk #1 FAILED at 3122.
1 out of 1 hunk FAILED -- saving rejects to file webfm.module.rej
patching file webfm.views.inc
patching file webfm_views.inc
patching file webfm_views_handler_file_filename_download.inc

Hope that helps.

#18

subscribing

#19

subscribing++
without views, what are other way of listing out all webfm attachment on nodes? This is not the same at core file attachment.

#20

Status:needs review» fixed

I've committed the patch submitted in node 554430 to head. I don't use views so I am leaving it up to others to test and submit fixes.

#21

Status:fixed» closed (fixed)

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