SPECIAL OFFER: Only $69 for access to everything in OSTraining for 1 year! You save $75!  1
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

Drupal Relation Module Tutorial

6 years 3 weeks ago #117232 by jcross
Drupal Relation Module Tutorial was created by jcross
Any chance OSTraining will be putting together a tutorial on the Relation module anytime soon? There isn't a lot out there and what there is - is outdated.

Please Log in to join the conversation.

6 years 3 weeks ago #117235 by Nick
Replied by Nick on topic Drupal Relation Module Tutorial
Hi jcross,

Their documentation looks to be pretty good:
www.drupal.org/node/1274796

In what way you wanting to use the Relation module? We might be able to create a tutorial for your specific use-case.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

6 years 3 weeks ago #117271 by jcross
Replied by jcross on topic Drupal Relation Module Tutorial
I've seen this article and most of the links to the videos are obsolete. I work and learn much better when I watch someone go through the steps and the videos are current.

As far as a customized tutorial - I have three content types I want to reference.

Content type #1 is called "Events".
Content Type #2 is called "Attendees" and there will be a many-to-many between Events and Attendees. There could be several Events, and an Attendee could sign up for multiple Events.
Content Type #3 is the User content. I want the Attendee Name, Address, Photo and other fields I have within the Users content to be accessible for each Attendee. So this would be a 1-to-1 relationship.

So for each Event there will be many Attendees. Attendees are all stored as Users. If I want the details on each Attendee I want to be able to have a relationship between Attendees and the User content.

Thanks....

Please Log in to join the conversation.

6 years 3 weeks ago #117300 by steve
Replied by steve on topic Drupal Relation Module Tutorial
Hi jcross

Looking at the Relation module closely, and at your needs, I'm tempted to keep looking at Entity Reference as solution here.

Entity Reference is far better supported and will be in the Drupal 8 core, making updates easier.

This module allows www.drupal.org/project/cer you to have 1-to-1 relationships:

If entity Alice references entity Bob, CER will make Bob reference Alice, and keep the references up-to-date when either entity is updated or deleted.

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!