I have two sections:
Games
Publishers
Games has a field called 'GamesPublisher' that is Entries type (set to Publishers)
I have a publisher called 'Microsoft' with an ID of 49.
I want to display all Game entries for the Publisher 'Microsoft' (ie ID 49)
I also want to set the order of the displaying in ASC order based on the field 'GamesCatalogNumber' which is in the section Games.
So far, it looks OK, but I have yet to figure out to limit entries to a specific Publisher. http://www.colorcomputergames.com/tandy-catalog/
{% set entries = craft.entries.section('games').relatedTo(entry) %}
<ul>
{% for entry in entries.order('GamesCatalogNumber desc') %}
<li>{{ entry.GamesCatalogNumber }}: <a href="{{ entry.url }}">{{ entry.title }}</a></li>
{% endfor %}
</ul>
{# Set parameters for prev/next elements list #}
{% set params = craft.entries.section('publishers').order('title asc') %}
{# Get the prev/next elements #}
{% set prevEntry = entry.getPrev(params) %}
{% set nextEntry = entry.getNext(params) %}
{# And make sure to only output the links if the element exists #}
{% if prevEntry %}<a href="{{ prevEntry.url }}">Previous Publisher</a>{% endif %}
{% if nextEntry %}<a href="{{ nextEntry.url }}">Next Publisher</a>{% endif %}
GamesCatalogNumber
? – André Elvan Dec 27 '16 at 12:07