Skip to content

Instantly share code, notes, and snippets.

@1stevengrant
Created August 14, 2014 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1stevengrant/49f8d93c5e0a69044ccf to your computer and use it in GitHub Desktop.
Save 1stevengrant/49f8d93c5e0a69044ccf to your computer and use it in GitHub Desktop.
{% for session in craft.entries.section('session').sessionType('Plenary') %}
{% if loop.first %}
<ul>
{% endif %}
<li>
<a href="#">
<h4 class="session-title">{{ session.title }}</h4>
{% for speaker in entry.sessionSpeaker %}
<h4 class="session-title">{{ speaker.speakerSalutation }} {{ speaker.speakerFirstName }} {{ speaker.title }}</h4>
{% endfor %}
{% if session.sessionOverview %}
<p class="session-description">{{ session.sessionOverview }}</p>
{% endif %}
{% if session.sessionBookChapter|length %}
<p class="session-reference">{{ session.sessionBookChapter }}</p>
{% endif %}
</a>
</li>
{% if loop.last %}
</ul>
{% endif %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment