I wanted to add a webform inside a block. I tried both Node Blocks and Form Block, but neither did quite what I was looking for. Instead, I borrowed from the Node Blocks module and came up with this patch. I haven't tested it extensively, but it seems to be working for what I needed.
If it looks like something you'd be interested in adding, I'd be glad to write some tests for it, if necessary. I haven't done many patches and this is the first time I've used Netbeans to generate one, so please let me know if there is anything I should be doing differently.
On a more general note, thanks for all the work on the module. I've used it with great success on a number of projects.
Comment | File | Size | Author |
---|---|---|---|
webform-module-blocks.patch | 2.17 KB | Matt V. | |
Comments
Comment #1
cdale CreditAttribution: cdale commentedI have some sites that have thousands of webforms. This patch would create a lot of clutter on the blocks page. I think it's a good idea, but perhaps adding an option when creating the webform node to add a block or not might be a better solution than adding a block for every webform on a site?
Comment #2
KrisBulman CreditAttribution: KrisBulman commentedHow does this handle form submissions? does it display the errors and user definied messages in the same node the block is residing in?
Comment #3
mattmm CreditAttribution: mattmm commentedjust for feedback purposes - we've created a block view (via views) to embed webform in a block.
Comment #4
quicksketchLet's keep this issue in #248157: Allow any Webform to be displayed as a block.