Needs review
Project:
Node Connect
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2011 at 22:37 UTC
Updated:
11 Jul 2012 at 06:42 UTC
Jump to comment: Most recent file
Comments
Comment #1
geek-merlinok, i implemented this and to keep it reviewable i made a series of commits of it.
get it at the dev branch of my sandbox: http://drupal.org/sandbox/axel.rutz/1341736
as i was at it i added a fix for #1101868: The "add a new" button fails if field is required or has unmatched text
after applying these patches i have a minor issue:
"edit" button does not do the right thing.
but too late now, i'll go to bed.
Comment #2
Fidelix commentedI really need this working with the autocomplete_deluxe widget
Does your implementation work with it, axel.rutz?
Thanks for the work, btw
Comment #3
dtarc commentedThis patch adds a nodeconnect add button for node references with select widget. It does not add a nodeconnect edit button. Support for add/edit of node references with autocomplete widget is not affected.
This patch is based on some code in the sandbox linked to in comment #1. It also has additions to nodeconnect_return_node_form_alter() which I needed in order to make it work.
We will likely need to support nodeconnect edit for node references with select fields in this project I am working on. If I do build that I will ad an updated patch.
Comment #4
socialnicheguru commentedpatch does not apply cleanly
Comment #5
dtarc commentedThe patch does apply to the alph2 release but does not apply to the dev snapshot since this commit -- http://drupalcode.org/project/nodeconnect.git/commitdiff/156f1ae309c0c34...
I'll reroll a new patch. Also, I've noticed the edit bug mentioned in #1, I'll try to fix that too.
Comment #6
dtarc commentedNew patch rerolled. This patch adds support for the select widget. It enables the add button on all select widgets and enables the edit button on single value select widget. The edit button does not get displayed for multiple value select widgets (UI issues would need to be sorted before this can happen.
This patch depends on the patch in comment #5 of #1558574: Move addition of add/edit form elements to their own functions
http://drupal.org/files/nodeconnect_abstraction_form_additions-1558574-5...
These patches are being broken up in the hopes that they will be committed sooner. If the maintainers would like I can bundle these two patches up together.
Comment #7
dtarc commentedRerolling the patch from #6 with a debug statement removed.