Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pmeissner
Created November 29, 2012 01:41
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 pmeissner/4166200 to your computer and use it in GitHub Desktop.
Save pmeissner/4166200 to your computer and use it in GitHub Desktop.
statamic semi-relationship
<h2><i>by</i> {{ categories_url_list }}</h2>
{{ entries:listing folder="about/staff" limit="1" conditions="title:{ categories_list }"}}
<a href="#" class="pull-left">
{{ image src="{{ staff_image }}" dim="150x300" }}
<img src="{{ image_url }}" width={{ width }} height={{ height }} alt="{{ title }}" class="thumbnail" />
{{ /image }}
</a>
<div class="media-body">
{{ content }}
<div><a class="email" href="mailto:{{ staff_email }}">{{ staff_email }}</a></div>
<div class="tel"><span class="value">{{ staff_phone }}</span></div>
</div>
{{ /entries:listing }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment