2

I have a relationship field where the parent can select multiple children from multiple channels. When it comes time to display everything, I need to know what channel the child entry comes from so I can display the proper fields.

I tried:

{parent}
{parent:channel_short_name} - <b>{parent:title}</b><br />
{/parent}

but no go. It literally just displays "{parent:channel_short_name}".

Any ideas? Just go get Playa?
Thanks
Amanda

Edit: Haha, yea never mind. I must have had a typo. It works fine.

1 Answer 1

3

This example in the docs suggests that your code should be:

{parents}
{parents:channel_short_name} - <b>{parents:title}</b><br />
{/parents}

Hopefully this helps.

2
  • 1
    Thanks for the quick response. I must have had my head in the clouds. Oct 31, 2013 at 20:36
  • 1
    Amanda, don't forget to mark Sean's answer as accepted if it worked for you.
    – Alex Kendrick
    Nov 1, 2013 at 13:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.