Hello,
I am wondering what is the status of ECK integration. I would love to have this for my current project, since it's the last piece i need to "migrate" the data from content types to entities and bundles.
On my test install I was able to use Entity Reference to point to an Entity Created by ECK. I was also able to enable the Entity Connect buttons on the "Field Settings". However, when creating a new entity, the "Add" and "Edit" buttons are not showing up.
By trying this, I was hoping to find some log or watchdog errors that I could follow to solve this issue. However, there are none. I was wondering if you guys could give me some clues on what is causing this incompatibility so I can decide whether or not it is worth it to try and fix it myself.
Best regards,
Joao
Comments
Comment #1
jygastaud commentedHi,
Entiy connect doesn't deal with ECK at the moment.
To start a patch for that, you will must do, a lot of work.
First start will be to allow each ECK entities to be referenced as allowed in the _entityconnect_get_ref_fields() (.module file). and continue with some changes in .form and .menu files.
Then, you will also need to modify entityconnect_form_alter() and the ugly
That function is on my roadmap for V2.
You can start dealing with _entityconnect_get_ref_fields() and post a patch. Then I will try to help you on the next step.
Feel free to ask for any question.
See you.
Comment #2
amen commentedThank you for the quick reply. I will look deeper into both Entity Connect and ECK and try to understand whether or not I am up for the task.
Comment #3
amen commentedComment #4
jygastaud commentedI have work on it and I am in a good way.
I should be able to post a start patch soon.
Comment #5
k.skarlatos commentedHello, any news about eck integration?
Comment #5.0
k.skarlatos commentedtypo
Comment #6
primsi commentedI have been working on a patch for this issue in the last days. So here is an initial patch to be reviewed.
Cheers.
Comment #7
paranojik commentedThe last patch didn't properly handle the case when the ER field only references one bundle.
This still needs review.
Comment #8
mengi commentedPatch in #7 works, but I got the below warnings after I added a entity in the node edit form;
The eck entity was created and the site isn't throwing any other warnings.
Comment #9
sevanden commentedI applied the patch, the icons/buttons are visible. When I click on, let's say the "Add" icon it nicely opens the edit form for the references entity, however, the submit/save button is no longer visible.
In addition I receive the following error: Undefined index: submit in entityconnect_child_form_alter() (line 720 of sites/all/modules/entityconnect/includes/entityconnect.form.inc).
Those lines display
Any ideas as to what could be wrong?
Comment #10
kgaut commentedI've just edited the patch #7 by paranojik to prevent errors described by sevanden in #9.
Working with 7.x-1.0-rc1 (to be ported to dev)
Comment #12
kgaut commentedMy bad, forget to commit some files before diff, here's the correct patch
(it's friday...)
Comment #13
jygastaud commentedComment #15
jygastaud commentedKgaut,
Thanks for the patch.
It looks like the test failed because of the internal path inside your site.
Please try something like that to reroll the patch.
Comment #16
kgaut commentedOk, I've cloned the project in an other directory this time.
Hope this one will pass.
Sorry for my laziness ;)
Comment #17
jygastaud commentedComment #19
jygastaud commentedReroll #16 patch for testbot
Comment #21
jygastaud commentedThank you all for your contribution.
Last patch is now commited.