Skip to content

Instantly share code, notes, and snippets.

@tdominey
Created March 30, 2014 21:44
Show Gist options
  • Save tdominey/9880364 to your computer and use it in GitHub Desktop.
Save tdominey/9880364 to your computer and use it in GitHub Desktop.
Album/set cover images in koken:event_album
<koken:event>
<!-- Render if event is a new album -->
<koken:event_album>
<!-- If an album, display primary cover image and link to album.lens to view -->
<koken:if data="album.album_type" equals="standard">
<koken:link title="View {{ album.title }}">
<koken:img />
</koken:link>
</koken:if>
<!-- If a set, display primary cover image of each album it contains and link to set.lens to view -->
<koken:if data="album.album_type" equals="set">
<koken:link title="View {{ album.title }}">
<koken:covers>
<koken:loop>
<koken:img />
</koken:loop>
</koken:covers>
</koken:link>
</koken:if>
</koken:event_album>
</koken:event>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment