Created
August 23, 2011 16:39
-
-
Save cj/1165789 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% block main %} | |
{% set parent as hifi.get({'id': this.parent})[0] %} | |
<h2>Series</h2> | |
{{ parent.title }}<br><br> | |
<h2>Title</h2> | |
{{ this.title }}<br><br> | |
<h2>Message URL</h2> | |
{{ this.url }}<br><br> | |
<h2>Speaker</h2> | |
{{ this.relations.author[0].title }}<br><br> | |
<h2>Date</h2> | |
{{ this.publishedAt|date("m/d/Y") }}<br><br> | |
<h2>Categories</h2> | |
{% for cat in this.relations.category %}{{ cat.title }}, {% endfor %}<br><br> | |
<h2>Links</h2> | |
{% for file in this.media %} | |
{% if '.pdf' in file.url %} | |
<a href="{{ file.url }}" target="_blank">View Worksheet</a><br> | |
{% elseif '.mp3' in file.url %} | |
<a href="{{ file.url }}" target="_blank">Download MP3</a><br> | |
{% endif %} | |
{% endfor %} | |
{% for sibling in hifi.get({'type':'content','parent':{'type':'content','url':parent.url},'orderBy':'ordinal'}) %} | |
<h3><a href="{{sibling.url}}">{{sibling.title}}</a></h3> | |
{% endfor %} | |
{% endblock main %} |
{% for page in hifi.get({'type':'content','parent':{'type':'content','url':this.url},'inMenu':true,'orderBy':'ordinal'}) %}
{{page.title}}
{% endfor %}
{% for sibling in hifi.get({'type':'content','parent':{'type':'content','url':this.url},'inMenu':true,'orderBy':'ordinal'}) %}
<h3><a href="{{sibling.url}}">{{sibling.title}}</a></h3>
{% endfor %}
{% set parent as hifi.get({id: this.parent}) %}
{% block main %}
<h2>Series</h2>
{{ parent.title }}<br><br>
<h2>Title</h2>
{{ this.title }}<br><br>
<h2>Message URL</h2>
{{ this.url }}<br><br>
<h2>Speaker</h2>
{{ this.relations.author[0].title }}<br><br>
<h2>Date</h2>
{{ this.publishedAt|date("m/d/Y") }}<br><br>
<h2>Categories</h2>
{% for cat in this.relations.category %}{{ cat.title }}, {% endfor %}<br><br>
<h2>Worksheet Link</h2>
{% for media in this.media({'url':{'like':'.pdf'}}) %}
{{ media.title }}
{% endfor %}
{% for sibling in hifi.get({'type':'content','parent':{'type':'content','url':this.url},'inMenu':true,'orderBy':'ordinal'}) %}
<h3><a href="{{sibling.url}}">{{sibling.title}}</a></h3>
{% endfor %}
{% endblock main %}
{% for sibling in hifi.get({'type':'content','parent':{'type':'content','url':parent.url},'inMenu':true,'orderBy':'ordinal'}) %}
<h3><a href="{{sibling.url}}">{{sibling.title}}</a></h3>
{% endfor %}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{% endfor %}