Skip to content

Instantly share code, notes, and snippets.

@snide
Created November 21, 2014 23:45
Show Gist options
  • Select an option

  • Save snide/df65643a36b0d355d929 to your computer and use it in GitHub Desktop.

Select an option

Save snide/df65643a36b0d355d929 to your computer and use it in GitHub Desktop.
Let's say you have two relations to your item, actors and directors, related to movies. On your movie page you could do this...
{% set crew = merge(item.actors, item.directors) %}
{% for crew in crew|sort('date_published', true) %}
{{ crew.name }}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment