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.

Has anyone got relationship field working beyond...?

May 18, 2013 12:55pm

Subscribe [2]
  • #1 / May 18, 2013 12:55pm

    York

    5 posts

    Has anyone got the relationship field working beyond a parent:children level? Add in a third channel for a Master:Parent:Children relationship and I can’t get any output between the looping tag pair.

    One to one is fine, one to many is fine, but one to one to many as in code below creates no output.

    {home:players}
    <span class="player">#{home:players:number} {home:players:first_name} {home:players:last_name}</span>
    {/home:players}

     

  • #2 / May 18, 2013 10:30pm

    travisb

    172 posts

    In the example you’re using, do you have {home:players} tag pair also surrounded by {home} tag pair?

  • #3 / May 19, 2013 10:17am

    York

    5 posts

    Thanks Travis, that solves my problem - I had not seen that the extra tag pair to loop from the first level of the relationship was needed - the example I gave is here in the user guide and does not seem to carry the extra pair, although the previous example the guide gives does.

    Thanks again.

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

ExpressionEngine News!

#eecms, #events, #releases