Page from Stream
Created 8 years ago by joeHi Guys,
I wanted to create a page that pulled data from a stream, in this instance a team page. There would be listing of people from a stream, and clicking on one would open a new page with all of their details pulled from the stream.
Has anyone tried doing something like this before?
Absolutely!
1.) Make your listing page and use the entries plugin function to loop your entries (Im still moving those docs up to new system but
entries(namespace, stream).get()
should get you started). You can also chain query builder type methods in there.2.) Make a child page and make sure that the option "Requires Exact URI Match" is OFF. Then you can pass an ID or something into the URI too and get it with
{{ request_segment(#) }}
using theentry
function similar to above.entry(namespace, slug).find(request_segment(3))
.