I’ve been having some fun getting QuipReply to work and have ended up pretty well stumped, was hoping someone here might be able to help. Essentially I’ve put together a blog section on my site following the instructions in this tutorial:
http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution.
It’s all worked great, but I wanted to take it one step further - basically I wanted the ability to enable or disable commenting on a per-post basis.
So what I did was create a TV called "comments" (using a simple checkbox input type), that, when checked, would be set to "1". Then, in my post chunks and templates, I used code like this:
[[*comments:notempty=`<a href="[[~[[*id]]]]#comments" class="comments">Comments ([[!QuipCount? &thread=`[[*id]]`]])</a>`]]
This worked perfectly for any Quip and QuipCount calls I tried. But I haven’t been able to make it work for QuipReply at all - whenever I try it, I just get no return from the snippet at all.
I’ve tried it like this:
[[*coments:notempty=`[[!QuipReply? &thread=`[[*id]]` &maxDepth=`2` &replyResourceId=`[[*id]]` &closeAfter=`30` &moderate=`1` &moderateAnonymousOnly=`1` &moderatorGroup=`comment-mods` &recaptcha=`1`]]`]]
And also like this (using the "if" snippet):
[[If? &subject=`[[*comments]]` &operator=`EQ` &operand=`1` &then=`[[!QuipReply? &thread=`[[*id]]` &maxDepth=`2` &replyResourceId=`[[*id]]` &closeAfter=`30` &moderate=`1` &moderateAnonymousOnly=`1` &moderatorGroup=`comment-mods` &recaptcha=`1`]]` &else=`Comments are disabled for this post`]]
But don’t get any results from either.
Any ideas?