ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Child with multiple parent entries across different channels

September 21, 2013 9:54pm

Subscribe [2]
  • #1 / Sep 21, 2013 9:54pm

    From the Expression Engine user docs:

    http://ellislab.com/expressionengine/user-guide/modules/channel/relationships.html#id12

    Since an entry can have multiple parent entries in multiple channels, potentially with the same field, we may need to specify which channel we want to examine for parents. To this, use the channel parameter:

    I do not understand how it is possible to have the same field name across multiple channels?  What am I missing in this statement?  What is the purpose of the channel field in the parents tag, then?

  • #2 / Sep 22, 2013 10:37am

    travisb

    172 posts

    The docs should probably say: “potentially with the same field name”, as it’s the name of the field that’s in question. In other words, if you had 2 channels with a field named “body,” then EE wouldn’t know which channel you were looking for results from in your parent tag unless you specify a channel. Make sense?

  • #3 / Sep 23, 2013 9:40am

    Yes, that answer makes sense though am I correct that you can never have two identical channel field names, regardless of their assigned channel?

    Well I guess {title} is in every channel so that’s one case.  Maybe it’s in reference to system default fields.

    Yes, I’m new to EE and trying to figure it all out!  Thanks for your help.

  • #4 / Sep 23, 2013 10:45am

    travisb

    172 posts

    Yes, you’re right on unique field names, my example was bad! So the fields where the names would overlap across channels would be ones like you mentioned: title, url_title, entry_date, etc…

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases