Published by Mijingo

movie icon image

EE Insider Blog

Spend your time learning and developing sites with ExpressionEngine and we'll use this blog to keep you informed of all the news related to ExpressionEngine and CodeIgniter.

» Read more in the Archives.

» Have a tip? Send us your EE news.

Learn ExpressionEngine Today

Over a series of 8 videos, watch and learn as Ryan builds an entire ExpressionEngine website from beginning to end. Get started now.

Another Relationships Example

There is no better way to learn than with some context. Reading the EE documentation is a thrilling way to spend your weekend (what?) but learning about EE concepts with real examples and code is even better.

Not long ago we published A Primer on Relationships by Noah Stokes and it walked you through a real-world application of relationships in EE.

Tony Geer posted a nice walk-through on his site about how he used relationships to make it easy to organize and display multimedia content (YouTube videos) on a client site.

I created one channel that captured only YouTube videos. Next, I created a new channel for the projects and took advantage of ExpressEngine’s freedom and flexibility to assign a field group with over 15 fields so that we could easily capture every bit of information that was needed for each project, but no field for videos. Why? Because I’ll use ExpressionEngine’s related entry functionality to link individual YouTube videos to particular projects.


Brush up on your relationships and read the entire post: ExpressionEngine Relationships and Related Entries by Tony Geer.

Posted on Aug 09, 2010 by Ryan Irelan

Filed Under: Development Tools