I’m using Articles together with Quip and I’m facing an issue
After posting a comment, the name and Gravatar show correctly, but the actual comment text doesn’t show. Instead it just shows a 0
. I can’t even update the comment in the manager. It always shows 0
.
Here are all the chunks I created, although I only copied the default from the docs and made aesthetical changes (I think). There are more default quip chunks defined within articles which aren’t generated as chunks in the elements tree (but they still seem to work…)
comment section call (default by articles)
[[+comments_enabled:is=`1`:then=`
<div class="post-comments" id="comments">
[[+comments]]
<br />
<h3>Add a Comment</h3>
[[+comments_form]]
</div>
<div class="sidemenu">
<h3>Latest Comments</h3>
<ul>
[[+latest_comments]]
</ul>
</div>
`]]
quipAddComment chunk
[[+preview]]
<span class="quip-success" id="quip-success-[[+idprefix]]">[[+successMsg]]</span>
<form id="quip-add-comment-[[+idprefix]]" action="[[+url]]#quip-comment-preview-box-[[+idprefix]]" method="post">
<div class="quip-comment quip-add-comment">
<input type="hidden" name="nospam" value="" />
<input type="hidden" name="thread" value="[[+thread]]" />
<input type="hidden" name="parent" value="[[+parent]]" />
<input type="hidden" name="auth_nonce" value="[[+auth_nonce]]" />
<input type="hidden" name="preview_mode" value="[[+preview_mode]]" />
<div class="quip-fld-1">
<label for="quip-comment-name-[[+idprefix]]">[[%quip.name? &namespace=`quip` &topic=`default`]]:<span class="quip-error">[[+error.name]]</span></label>
<input type="text" name="name" id="quip-comment-name-[[+idprefix]]" value="[[+name]]" />
<label for="quip-comment-email-[[+idprefix]]">[[%quip.email]]:<span class="quip-error">[[+error.email]]</span></label>
<input type="text" name="email" id="quip-comment-email-[[+idprefix]]" value="[[+email]]" />
</div>
<div class="quip-fld-2">
<input type="checkbox" value="1" name="notify" id="quip-comment-notify-[[+idprefix]]" [[+notify:if=`[[+notify]]`:eq=`1`:then=`checked="checked"`]] />
<label for="quip-comment-notify-[[+idprefix]]">[[%quip.notify_me]]<span class="quip-error">[[+error.notify]]</span></label>
</div>
<div class="quip-fld recaptcha">
[[+quip.recaptcha_html]]
<span class="quip-error">[[+error.recaptcha]]</span>
</div>
<div class="quip-fld">
<p><span class="quip-allowed-tags">[[%quip.allowed_tags? &tags=`[[++quip.allowed_tags:htmlent]]`]]</span><span class="label">[[%quip.comment_add_new]]</span><span class="quip-error">[[+error.comment]]</span></p>
<textarea name="comment" id="quip-comment-box-[[+idprefix]]" rows="5">[[+comment]]</textarea>
</div>
<div class="quip-fld submit">
<button type="submit" name="[[+preview_action]]" value="1">[[%quip.preview]]</button>
[[+can_post:is=`1`:then=`<button type="submit" name="[[+post_action]]" value="1">[[%quip.post]]</button>`]]
</div>
<br class="clear" />
</div>
</form>
quipComments chunk
<div class="quip" id="comments">
<h3>[[%quip.comments]] ([[+total]])</h3>
<div id="quip-topofcomments-[[+idprefix]]"></div>
[[+comments:notempty=`<ol class="quip-comment-list">
[[+comments]]
</ol>`]]
[[+pagination]]
</div>
quipComment chunk
<li class="[[+cls]]" id="[[+idprefix]][[+id]]" [[+depth_margin:notempty=`style="padding-left: [[+depth_margin]]px"`]]>
<div id="[[+idprefix]][[+id]]-div" class="quip-comment-body [[+alt]]">
<div class="quip-comment-right">
[[+gravatarUrl:notempty=`<img src="[[+gravatarUrl]]" class="quip-avatar" alt="" />`]]
</div>
<p class="quip-comment-meta">
<span class="quip-comment-author">[[+authorName]]:</span><br />
<span class="quip-comment-createdon"><a href="[[+url]]">[[+createdon]]</a>
[[+approved:if=`[[+approved]]`:is=`1`:then=``:else=`- <em>[[%quip.unapproved? &namespace=`quip` &topic=`default`]]</em>`]]
</span>
</p>
<div class="quip-comment-text">
<p>[[+body]]</p>
[[+replyUrl:notempty=`<p><span class="quip-reply-link"><a href="[[+replyUrl]]">[[%quip.reply? &namespace=`quip` &topic=`default`]]</a></span></p>`]]
</div>
<div class="quip-comment-options">
[[+report]]
[[+options]]
</div>
<div class="quip-break"></div>
</div>
[[+children:notempty=`<ol class="quip-comment-list">[[+children]]</ol>`]]
</li>
Any suggestions how to solve this?