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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jeremyll’s picture

subscribing

FreeFox’s picture

I need this for D7 too so ... subscribing :)

wjaspers’s picture

+subscribing

carlos.macao’s picture

subscribing

BrightBold’s picture

Title: Drupal 7 port » Drupal 7 port for Webform View Reference Component

Subscribing! 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.

BrightBold’s picture

Category: support » feature
FileSize
13.53 KB
12.59 KB

Well 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.

mike503’s picture

subscribing 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.

BrightBold’s picture

@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!

skolesnyk’s picture

D7 port is a must!

skolesnyk’s picture

In 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.

pav’s picture

subscribing

kanani’s picture

For 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

kyleoliveira’s picture

That 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).

freakalis’s picture

I will try to have an release available for Drupal 7 within a month or two. Stay tuned!

hughey’s picture

Category: feature » task

subscribing. would love to see this, too.

OFF’s picture

Subscribing

freakalis’s picture

For a Drupal 7 use this module https://drupal.org/sandbox/mrconnerton/1373760
Tried it and it's working great!