I have two sections:
- Games
- Publishers
Games has a field called "GamesPublisher" that is a relation (field type "Entries"), the Source is "Publishers".
In my template to show an entry from games, I want to display the default field "title" of a publisher that I assigned to the games entry in the admin CP.
{% extends "_layout" %}
{% set title = "Games" %}
{% set entries = craft.entries.section('games').limit(10).order('title') %}
{% block content %}
<ul>
{% for entry in entries %}
<li>
{% for category in entry.GamesGenre %}{{ category.title }}{% endfor %}: <a href="{{ entry.url }}">{{ entry.title }}</a> (***Put Title of Publisher Here***, {{ entry.GamesReleaseYear.format('Y') }})
</li>
{% endfor %}
</ul>
{% endblock %}
The place I want to insert the publisher's title is shown as: Put Title of Publisher Here
Thanks all. I just started using Craft about 3 hours ago for the first time!