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.

Reverse Related Entries showing rel_id

December 03, 2010 9:43pm

Subscribe [2]
  • #1 / Dec 03, 2010 9:43pm

    Ponder The Web

    20 posts

    I have hockey_team as a weblog and games as a weblog with a relationship field for team_home and for team_visitor.

    I think this is the right logic, but instead of displaying the team name, it displays the relationship id.

    {exp:weblog:entries weblog="hockey_team" dynamic="off"}
    {reverse_related_entries}
    {games_home} vs {games_visitor}
    {/reverse_related_entries}
    {/exp:weblog:entries}

    ie. it displays 11 vs 13 instead of team1 vs. team2.

    I’m using EE 1.7.0 Build:  20101018

  • #2 / Dec 03, 2010 10:11pm

    Ponder The Web

    20 posts

    I think I was using the tag wrong. I figured out a way to do it with related_entries

    {exp:weblog:entries weblog="hockey_game" dynamic="off"}
    {related_entries id="games_home"}
    {team_name}
    {/related_entries}
    vs
    {related_entries id="games_visitor"}
    {team_name}
    {/related_entries}
    {/exp:weblog:entries}
  • #3 / Dec 05, 2010 2:49pm

    Greg Salt

    3988 posts

    Hi Ponder The Web,

    Glad that you got this figured out. Please post back if required.

    Cheers

    Greg

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

ExpressionEngine News!

#eecms, #events, #releases