Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Greetings,
Are there any plans for porting this module to Drupal 7?
I'm quite the Drupal novice so I don't really know how to begin working on it myself. I might be able to assist with some references on what to read up about.
Best regards,
Oskar
Comment | File | Size | Author |
---|---|---|---|
#6 | webform_viewreference-7.x-1.x-dev.tar_.gz | 12.59 KB | BrightBold |
#6 | webform_viewreference.patch | 13.53 KB | BrightBold |
Comments
Comment #1
jeremyll CreditAttribution: jeremyll commentedsubscribing
Comment #2
FreeFox CreditAttribution: FreeFox commentedI need this for D7 too so ... subscribing :)
Comment #3
wjaspers CreditAttribution: wjaspers commented+subscribing
Comment #4
carlos.macao CreditAttribution: carlos.macao commentedsubscribing
Comment #5
BrightBoldSubscribing! I would love to see this. Also changing title for greater dashboard clarity (since we likely all have many "Drupal 7 port" issues on our dashboards.
Comment #6
BrightBoldWell I'm not a really developer, but I ran this through Coder Upgrade to create an initial pass at a D7 port (attached) and tested it on a D7 site. I also changed the .info file so that the dependency is on the 7.x module References rather than 6.x's Nodereference.
Editing the webform works perfectly — you can add a field choosing "Select View" as the field type (although Select View appears at the bottom of the list, rather than alphabetically, since it's being appended to the end of the array) and choose one of your views.
However, when you attempt to view the webform, you get the following WSOD:
Fatal error: Call to a member function get_option() on a non-object in /home/tremon5/public_html/sandbox/d7/sites/all/modules/views/includes/view.inc on line 2195
I was out of my depth attempting to troubleshoot that error, so that's as far as I got. But I'll post the initial (non-working!) port here, as well as the patch file created by Coder upgrade, if you'd rather have that than a full module. Please note that the patch does not include the change to the References dependency in the .info file and the version number in the Readme, both of which I changed by hand, so if you use the patch you'll need to re-do those changes.
Maybe this will give someone a head start on a real port.
Comment #7
mike503 CreditAttribution: mike503 commentedsubscribing as well.
I suppose if there is another way to populate a webform using taxonomy terms or perhaps a node reference, instead of using a view, I'd use that instead. I only used Views Reference to get around that shortcoming. I have not looked to see any options for D7, maybe Webform's got more advanced.
Comment #8
BrightBold@mike503: does the Webform Term Options module meet your needs?
I really need a reference because I'd like to pull a list of OG group nodes for people to indicate their interest in. I keep hoping someone with developer skills will need this functionality too and can take a look at the buggy port. But the Taxonomy module may help you!
Comment #9
skolesnyk CreditAttribution: skolesnyk commentedD7 port is a must!
Comment #10
skolesnyk CreditAttribution: skolesnyk commentedIn the list of available views you show list of views names. I think you should follow convention of node reference module and show only views with references.
Comment #11
pav CreditAttribution: pav commentedsubscribing
Comment #12
kanani CreditAttribution: kanani commentedFor those still interested in a D7 port of this, checkout http://drupal.org/node/767290#comment-5375258 with a direct link to the working module here http://drupal.org/sandbox/mrconnerton/1373760
Comment #13
kyleoliveira CreditAttribution: kyleoliveira commentedThat module is very nice for a sandbox project. mrconnerton seems to think it should be merged with Webform View Reference Component (http://drupal.org/node/1669186). I for one would like to see either a D7 port of Webform View Reference Component or a full project of Webform View Select (or both, as one).
Comment #14
freakalis CreditAttribution: freakalis commentedI will try to have an release available for Drupal 7 within a month or two. Stay tuned!
Comment #15
hughey CreditAttribution: hughey commentedsubscribing. would love to see this, too.
Comment #16
OFF CreditAttribution: OFF commentedSubscribing
Comment #17
freakalis CreditAttribution: freakalis commentedFor a Drupal 7 use this module https://drupal.org/sandbox/mrconnerton/1373760
Tried it and it's working great!