Recently Browsing 0 members
- No registered users viewing this page.
Hi all, I duplicated the FieldtypeComments module by adding it in site/modules to get the Uikit3 html output.
Problem: I can't post a comment.
Where am I doing wrong?
<?php echo $page->commenti->renderForm(); ?>
By Rhen GWL
I'm trying to install comments on two of my clients' websites. In both cases, I'm able to display the comment submission form, but the form submissions are not being saved or display. Once I click the submit button, I'm directed to the homepage where #CommentForm is appended to the end of the URL. I have looked through countless forums and Google searches, but I can't find any advice that has fixed this issue. I have followed the instructions from https://processwire.com/docs/modules/guides/comments/ exactly as described, and I'm getting no where.
Like I said, this is set up on two different websites and I'm seeing the same issues with both. I assume it's some issue with connecting with a database, but I don't see anything in the instructions on PW's website that says I need to do anything there.
I need to add a checkbox to the comments form to make it GDPR compliant and I guess I'm not the only one...
Doing a search and looking at the FieldTypeComments module file it seems that the only way to add custom fields to the form is by copying the module to site/modules and apply the changes there.
I am just wondering why the comment form is not driven by the PW form API and also why none of the methods in that module are hookable?
Would be much appreciated if you could share your approaches on handling this.