The relation add module enables relations to be added inline in node edit forms.

This could be very useful for attaching RedHen contacts and organizations to nodes. For example, a content type of project, video, article, etc., could have Red Hen contacts associated with it.

Unfortunately, Relation Add does not appear to recognize RedHen entities.

This may well be an issue with Relation Add and is a duplicate of this issue: https://drupal.org/node/2177303

I am adding it here because the ability to create relations between RedHen entities and other content types is important for RedHen.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arzuga’s picture

I've the same problem.
If I want to add a relation (Sponsorship) between organization and Event(Node),
this is not possible.
The only way to do it now, I think is to create Events as Contact Type (but it would be confusing, no??)
Thanks

levelos’s picture

Status: Active » Closed (works as designed)
Related issues: +#2177303: Not working with redhen

I haven't use that module, but a quick glance at the code (http://drupalcode.org/project/relation_add.git/blob/refs/heads/7.x-1.x:/...) suggests that the module is relying on the menu path to load entites for creating relationships. This won't work with RedHen, at least, as the path to a contact is /redhen/contact/123. This is a problem in the design of Relation Add and, aside from changing the path of contacts which isn't in the works, nothing we can do here.

mr.york’s picture

Status: Closed (works as designed) » Needs review
FileSize
8.64 KB

I have tried to prepare redhen to work with any relation type. As far as i saw redhen was not prepared to work with relation types where on the other side there can be any type of entity (node, user, etc). It builds on its own entities quite extensively.
The patch i have created is more like a workaround, it would be a lot better if it handled entities in a uniform way, for example by using entity metadata wrapper. I did not want to go this direction myself, as i dont know the whole redhen module enough to ensure that the end result is good.

SocialNicheGuru’s picture

Since this issue is fixed in relation add, https://drupal.org/node/2177303, should this be closed?

gcb’s picture

Status: Needs review » Closed (outdated)