These are chat archives for jescalan/roots

28th
Jun 2016
Perry Kibler
@javaporter
Jun 28 2016 00:32
I thought sort would be pretty easy to figure out, but I haven't yet. Maybe tomorrow I'll be smarter?
Jeff Escalante
@jescalan
Jun 28 2016 02:12
sorry i dont know a ton about the contentful but if there's anything you need help with please lmk
and i can try!
or if there's some API you want implemented, or options I can try to pull that in
Tom Kraak
@tkraak
Jun 28 2016 03:13
This message was deleted
@javaporter thanks much for that!

I’ll need to do a featured post at the top here:

http://www.earlylightmedia.com/blog

and the rest is pretty much latest post by category
Dan Woodward
@deedubbleyoo
Jun 28 2016 09:44
I am trying to implement basically the same thing as you guys - the bit I am struggling with is how to use filters properly
Tom Kraak
@tkraak
Jun 28 2016 12:01
@deedubbleyoo does the above help at all?
Dan Woodward
@deedubbleyoo
Jun 28 2016 12:16
yes, very much so - I have opted to use a boolean for featured post, so should be able to transpose the example above
fingers crossed!
Tom Kraak
@tkraak
Jun 28 2016 13:21
@deedubbleyoo sounds very much like we are in the same boat! :)
we should have a little roots-contentful group with @javaporter and anybody else that’s interested
Jeff Escalante
@jescalan
Jun 28 2016 13:52
:+1:
Tom Kraak
@tkraak
Jun 28 2016 15:09

@javaporter the filter link in the roots-contenful readme is outdated … is this what you’ve been looking at for filters?

https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters

Tom Kraak
@tkraak
Jun 28 2016 18:37
what’s the proper jade / pug for this:
.col-md-10
  span By
  | entry.author
Steve Sunderland
@stevesunderland
Jun 28 2016 19:27
span By #{entry.author}
or
span By
| #{entry.author}
Tom Kraak
@tkraak
Jun 28 2016 19:34
@stevesunderland thank you!
Jeff Escalante
@jescalan
Jun 28 2016 19:46
:+1:
Perry Kibler
@javaporter
Jun 28 2016 20:07
@tkraak yeah, that link does help, it gets me closer at any rate. I'm assuming it'll be something along these lines: - for post in contentful.featuredStories.order='fields.title', but that's not it