Closed ephimoff closed 9 years ago
Are you using something like this then?
collections:
posts: (database) ->
database.findAllLive({relativeOutDirPath: 'blog}, [date:-1])
Make sure you have the pagedCollection stuff at the top of blog.html.eco too.
I use
posts: ->
@getCollection('documents').findAllLive({relativeOutDirPath:'blog'},[date:-1])
I also use this code at the top of my blog.html.eco
---
layout: 'page'
title: 'Blog'
pageCount: 3
pageSize: 1
pagedCollection: 'posts'
---
Hey Rob,
Any thoughts about this? I really need your help with that. Or at least point me out where should I dig?
Could you try <% console.log @document %>
? You might be able to find what page data is available.
I did it and got lots of stuff in the console. The question is: what can I use to fix it? I tried to do that:
<% console.log @document.page %>
because I thought it'll show me something useful, but it didn't. Just got undefined
.
It seems that there is no object/method/attribute (whatever it is) .page
@ephimoff add "isPaged: true" to the meta area.
@ephimoff did @everthis' suggestion of adding isPaged: true
fix it for you?
I'm closing this due to the amount of time that's passed with no word on if it's fixed, but if it's not, please comment and I'll reopen it.
Hi, Trying to use the plugin, but each time when there is a code like this
I get the following error:
What am I doing wrong? I couldn't find what should I add to the docpad.coffee to make it working. I use: