Working with Relationships
- 1 - Installation.......
- 2 - Let’s Create a Channel.......
- 3 - Let’s Create a Template.......
- 4 - Using File Fields Part 1: Set Up.......
- 5 - Using File Fields Part 2: Templating.......
- 6 - DRY Template Layouts and Partials.......
- 7 - Moving the System Directory Above Webroot.......
- 8 - Variable Modifiers.......
- 9 - Working with Categories.......
- 10 - Working with Relationships.......
- 11 - Partials, Embeds, Variables.......
- 12 - Let’s Create a Channel Layout.......
- 13 - Routing.......
- 14 - Contact Form.......
- 15 - Adding A 404 Page.......
In this video, we will take a deep dive into relationship, create our first relationship field, and add related content to our blogs
What We Do
- Explore the Relationships fieldtype
- Create our first relationship fieldtype
- Add our relationship to our template
Code Snippets
Channel Entries Tag
{exp:channel:entries channel="page" url_title="homepage"}
<h1>{title}</h1>
<h2>{subtitle}</h2>
{page_content}
{/exp:channel:entries}
Links
- ExpressionEngine Relationships Fieldtype: https://docs.expressionengine.com/latest/fieldtypes/relationships.html
- Explanation of Relationships slides: https://docs.google.com/presentation/d/1fKunFO2mz_p5kdxQ2IcQ-Yvsch4izPu78kIDjk_Fayg/edit?usp=sharing
- See all of the site build in action in the Learn EE git repository