I’ll give that a proper read tomorrow, looks like a great comment / reply system!
Do you have a demo for it? You could deploy it to meteor maybe?
I’ll give that a proper read tomorrow, looks like a great comment / reply system!
Do you have a demo for it? You could deploy it to meteor maybe?
In your:
Template.post.helpers({
replies: function() {
var currentPost = this._id;
replies: Replies.find({parent: currentPost});
}
});
you are not returning the data (a new replies variable within the replies function), try this (with a return):
Template.post.helpers({
replies: function() {
var currentPost = threturn
return Replies.find({parent: currentPost});
}
});
Yup that’s why I put at the top of my post to ignore it, I realised my mistake as soon as I posted! Derp…
Saying that, thanks a lot for your help. Your solution was an elegant and simple solution to my problems