Skip to content

Instantly share code, notes, and snippets.

@cj
Created August 23, 2011 16:39
Show Gist options
  • Save cj/1165789 to your computer and use it in GitHub Desktop.
Save cj/1165789 to your computer and use it in GitHub Desktop.
{% 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 %}
@joshbartolomucci
Copy link

 {% for page in hifi.get({'type':'content','parent':{'type':'content','url':'parent.url'},'inMenu':true,'orderBy':'ordinal'}) %}
<h3><a href="{{page.url}}">{{page.title}}</a></h3>

{% endfor %}

@joshbartolomucci
Copy link

{% for page in hifi.get({'type':'content','parent':{'type':'content','url':this.url},'inMenu':true,'orderBy':'ordinal'}) %}

{{page.title}}

{% endfor %}

@joshbartolomucci
Copy link

{% 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 %}

@joshbartolomucci
Copy link

{% 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 %}

@joshbartolomucci
Copy link

{% 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