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.
Share on Twitter