Forum
Comments App Editing Issue
Hi,
We are having issues with a client's site using the comments app. Despite naming the main comment field exactly as in the documentation it isn't reflected on the main site when we are editing comments in the admin panel.
What I have noticed is that it will update in the commentDynamicFields column but not the commentHTML column in the database.
We are using the 1.1 of the app. Below are our form and comment templates:
comment.html:
<perch:before>
<div class="row">
<div class="guest-book">
</perch:before>
<blockquote class="comment centered">
<div class="content">
<span class="credit"><perch:comments id="commentName" type="text" label="Name" order="1" required="true" /></span>
<perch:comments id="commentHTML" encode="false" html="true" type="textarea" label="Message (HTML)" order="2" required="true" />
</div>
</blockquote>
<perch:after>
</div>
</div>
</perch:after>
comment_form.html:
<div class="row">
<div class="center-span">
<perch:form id="comment" method="post" app="perch_comments" action="./guest-book">
<h1 class="h-large border-bottom">Our Guestbook</h1>
<div class="content">
<p>Sign our guestbook below or read some of our lovely messages from parents and teachers. We’d love to hear from you!</p>
<div>
<perch:label for="commentName" class="h-regular accent dot centered">Your name</perch:label>
<perch:input type="text" id="commentName" required="true" label="Name" antispam="name" class="text-input" />
<perch:error for="commentName" type="required">Required</perch:error>
</div>
<div>
<perch:label for="commentHTML" class="h-regular accent dot centered">Your message</perch:label>
<perch:input type="textarea" id="commentHTML" required="true" label="Message" antispam="body" class="text-input large"/>
<perch:error for="commentHTML" type="required">Required</perch:error>
</div>
<div>
<div style="display: none;">
<perch:input type="text" id="your_details" antispam="honeypot" />
</div>
<perch:input type="hidden" id="parentID" value="<perch:comments id="parentID" />" />
<perch:input type="hidden" id="parentTitle" value="<perch:comments id="parentTitle" />" />
<perch:input type="submit" id="submitComment" value="Submit Message" class="button h-regular bounce-hover"/>
</div>
<perch:success>
<div class="centered">
<h1 class="h-large border-bottom accent">Thank you</h1>
<p>Your comment has been submitted and will appear on the site once approved.</p>
</div>
</perch:success>
</div>
</perch:form>
</div>
</div>
Yes, I've noticed that too. We have it logged.
Ok Drew, thanks for getting back to us.