Comments
Config setup
To create a comment form (after having already installed and set up PmForm) add the following to your config file:
$PmForm['comments'] = 'saveto={$FullName} form=#commentform fmt=#talkpost';
Templates
If you do not already have a Site/PmFormTemplates
page you can copy the text from the page on this site here and paste it into a new Site/PmFormTemplates
or a Site/LocalTemplates
on your site.
- Note, expect the
PmFormTemplates
page to get overwritten in future updates. If you want to modify the templates and keep your changes after an update, use yourSite/LocalTemplates
page. - The templates that you will need for the comments form are called:
- #commentform and
- #talkpost
Comment directives
Add the following directive to the page where you want your comment posts to appear:
(:pmform comments:)
Placement
See FmtDirectives for (:template default where=...:)
if you need to save the text to a page different from the one where the (:pmform ...:)
markup is placed.
The following only works when the (:pmform ...:)
markup is in the same page where the submitted form is saved.
To control the placement of comments, use the "where" argument, for example:
- put new comments at top of a page (newer comments appear before older ones)
(:pmform comments where=top:)
- put new comments immediately below the
(:pmform:)
directive (newer comments appear before older ones)
(:pmform comments where=below:)
- put new comments at the above the
(:pmform:)
directive (newer comments appear after older ones)
(:pmform comments where=above:)
- put new comments at the bottom of the page (newer comments appear after older ones)
(:pmform comments where=bottom:)
GDPR Comment Forms
See GDPR Comments for an example.
Comments
gbfbgb
A simple spam comment to get a visual on how it works.
That's very interesting.
I agree with Pm.
i'll try it! eheh!
Really? Cool!