Skip to content

Instantly share code, notes, and snippets.

@zvineyard
Last active August 29, 2015 13:56
Show Gist options
  • Save zvineyard/8829479 to your computer and use it in GitHub Desktop.
Save zvineyard/8829479 to your computer and use it in GitHub Desktop.
A multiple relationship streams tag example for PyroCMS, using two streams to output data.
{{ streams:cycle stream="articles" namespace="cope" paginate="yes" pag_segment="2" limit="10" order_by="created" sort="desc" }}
<!--{{ total }} entries returned-->
<div>
{{ entries }}
<p>{{ title }}</p>
<p>
{{ streams:departments }}
{{ name }}
{{ /streams:departments }}
</p>
{{ /entries }}
</div>
{{ pagination }}
{{ /streams:cycle }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment