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.
Hello,
I installed and use the entity reference module on my site, as they say the node reference module "will most probably be deprecated in the near future in favor of Entity Reference"
Is there a chance that CCK signup could work with entity reference in the near/far future or isn't it going to happen ?
Thank you
Comments
Comment #1
Open Social CreditAttribution: Open Social commentedHi, I noticed this is still the case.
Any plans to support entity_reference?
Comment #2
bsandor CreditAttribution: bsandor commentedI Opened this http://drupal.org/node/1924870 issue ( I marked that as duplicate in favour of this ticket).
Also I see some very practical things in it as Nodereference URL Widget is not compatible with OG 7.x-2.x http://drupal.org/node/1514180
Also I opened this http://drupal.org/node/1924984 ticket as of following mentioned incompatibility.
Comment #3
bsandor CreditAttribution: bsandor commentedWhere to start?
If i'm right you can find following things related to nodereference url:
I didnt have a look at the rest of sub modules as they are not the most important at this stage.(cck_signup.test is)
Comment #4
bsandor CreditAttribution: bsandor commentedIsn't it Entity Reference Prepopulate support that we are looking for? Which does the very same with entity references as nodereference_url_widget does with nodereferences?
Comment #5
bsandor CreditAttribution: bsandor commentedOr Contextual Administration?
Some ideas here: http://drupal.org/node/1425864
Comment #6
bsandor CreditAttribution: bsandor commentedI started my simplified version: one signup and one event node type. It doesn't make sense to put it here as of code is pretty different. At the same time I put here those bits I needed the most time for.
1.
I found is that in .module in function cck_signup_get_signup:
needs to be changed to:
as of Entity Reference Module.
2.
Also function cck_signup_node_view_alter is not necessary as of usage of Entity Reference Prepopulate to create links. It's not ready at all and dedicated to my own project. If you want to put links into link section use cck_signup_node_view_alter. I think it needs some change in logic as noderef_url will not generate the initial signup link. This function needs to take care of that.
Here are the lines creating my links:
Where $custom_signup is an array with 'signup_type' or 'reference_field' dedicated to my signup node type name and reference field (entity ref) on signup node type respectively.
$node is my event node.
$signup is: $signup = cck_signup_get_signup($node)
Naturally i set my entity_reference_field in signup to use entity reference functionality.
Comment #7
bsandor CreditAttribution: bsandor commentedSame in function _cck_signup_validate_signup_node:
needs to be changed to