I have 3 channels
City
-Name of City(Title)
University
-Name of School(Title) -Address -City(Relationship Field With City Channel)
Professor
-Name of Professor(Title) -University Name (Relationship field with University Channel) -Gender -Salary -Experience
Now What I have to do is On City Page I have to list all University and when i click on that university then on that University Page I have to show all Professor teaching in that University
The Code I am using is
{exp:channel:entries channel="university" limit="1" url_title=segment_2}
{title}
{address}
<table>
{relationship_field="universityname"}
<tr>
<td class="gender">{if relationship_field:gender == 'M'}<span class="male"></span>{if:else}<span class="female"></span>{/if}</td>
<td>{relationship_field:title}</td>
<td>{relationship_field:experience}</td>
<td>${relationship_field:salary}</td>
</tr>
{/relationship_field}
</table>
But for some reasons i cant get the value of Professor Channel. Please Help