We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Parent Relationships

How Do I?

calebdurham's avatar
calebdurham
1 posts
10 years ago
calebdurham's avatar calebdurham

Hi everyone! I’m working on a website right now for a church and am setting up a podcast of teaching sessions. The site is built with Structure, but I don’t know if that’s relevant to the problem I’m experiencing. Basically, I have 3 channels: Teachings, Teaching Series, and Teachers. Whenever you create a Teaching entry, you can select a series to have it be a part of, and you can choose from the list of teachers. Both of these are single relationships.

As I understand it, that makes Teachings the Parent and Series and Teachers to be two different sets of children.

I’ve been able to set up the code for the main teachings page, but when I try to see a list of all the messages in a series (or all the messages by a specific teacher), expression engine renders my code as plain text. If I leave out the {parent} tags, I get an error, but when they are back in, they show up like body text. I don’t understand what I’m doing wrong.

Here is the section of code that is not working:

<div class="frame">
{exp:channel:entries channel="teaching_series" limit="1" url_title="{segment_3}"}
 <div class="halfblock">
  {series_image}
  {series_summary}

 </div>
 <div class="halfblock">
  <h3>{title}</h3>
  <h4>{series_timeframe}</h4>
  <ol>
   {parents field="in_series" orderby="date" sort="asc"}
              <li>{parents:title} - {parents:speaker} - {parents:entry_date format="%n/%j"}</li>
  {/parents}
  </ol>

 </div>
{/exp:channel:entries}
</div>

Any ideas? Am I missing something really obvious? Thank you so much! Blessings, Caleb

PS: If you want to see what I’m experiencing, here’s my site: CTF Raleigh Teachings

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.