First off, I love this module, thank you for sharing it. I'm currently building a school web site and I'm entering students and parents as separate contacts and then I'm linking them with Entity Reference, which works, but Entity Connect, which allows you to create a new entity on the fly does not work with redhen, there are no errors but the buttons do not show up. Seems like the code generated by entityconnect is getting ignored.

CommentFileSizeAuthor
#2 Screen shot 2012-08-28 at 12.01.33 AM.png23.69 KBjday

Comments

levelos’s picture

We'll take a look at why Entity Connect isn't working. Do note that you can create relationships between contacts out of the box using RedHen's relation organization. On the connections tab, create a relation of type "Personal Connection" and then use the autocomplete to select a contact to connect.

jday’s picture

StatusFileSize
new23.69 KB

Thanks, I did try the personal connection relation but I got this error: "Connections are only allowed between contacts and organizations." - Maybe because I specified contact bundles...? (screenshot attached)

I'm also having issues with the entity reference autocomplete field, when you start typing, it will list the first 10 contacts that were created but not the ones that match what you are typing. The work around has been to use the select list widget type but that will get old when the number of contacts increases.

levelos’s picture

Re: relations, RedHen automatically installs two types of relations. One for connecting contacts and orgs and another for contacts to contacts. To use them, you visit /redhen/contact/[id]/connections and choose the appropriate connection type from the pull down. Sounds like you left it at affiliations, which is for orgs.

Re: the autocomplete list, might be a separate issue to look into.

jday’s picture

Yes I was using the personal connections type, but I had specified contact types in the settings (students and parents), after changing that back to 'any contact type', then the personal relation connection worked.

But I prefer the entity reference because the parent info can be easily displayed on the student summary without having to click the connections tab.

seanberto’s picture

Status: Active » Closed (works as designed)

That could be pretty easily handled my implementing a view hook on the student entity. Or, it could be handled with a Views block to show parent information on the student entity display.

valderama’s picture

I had a similar issue - and found out that there is an easy way to integrate "references_dialog" (which is very similar to entityconnect) module with RedHen entity.

By implementing a hook one can use references_dialog to fill entity reference fields which point to RedHen contacts / organisations.

See details here: http://drupal.org/node/1817524