DustPress Comments
Comments Helper for DustPress - A WordPress plugin that adds a DustPress helper enabling ajaxified commenting for your website.
by Geniem Oy / Ville Siltala · github.com/devgeniem/dustpress-comments · website
★ 1stars
4.6kcomposer installs
3forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/devgeniem/dustpress-comments/archive/refs/heads/master.zipAlso on Packagist as devgeniem/dustpress-comments:
composer require devgeniem/dustpress-commentsFrom the readme
Comments Helper
DustPress helpers are a handy tool for creating templates with a bit more logic. Comments Helper is a DustPress plugin for enabling commenting in DustPress based themes.
Use Comments Helper with your desired parameters and DustPress will provide an AJAX powered commenting for your posts and pages. This plugin provides base templates for a quick start. Just install and enable the plugin. You can override the templates with your own templates by adding them with the corresponding names in /partials directory inside your theme, for example starting with the container in: wp-content/themes/best-theme-ever/partials/commentscontainer.dust.
To enable full page caching on pages using DustPress Comments the helper parameters must be passed via filter or model functions. You have to provide two functions: one for fetching the comments parameters and another for comment form parameters. The filter slug or the model name will be written into the comments section dataset and into a hidden input field in the comment form. Each AJAX request will include the slug or the model name for the DustPress Comments to be able to retrieve the correct helper parameters. There are examples
Read the full README on GitHub →