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';


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 your Site/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:)


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.


Post a comment:


Posted by Jake DP on November 22, 2023, at 10:38 PM

A simple spam comment to get a visual on how it works.

Posted by Pm on May 18, 2007, at 08:10 AM

That's very interesting.

Posted by Pm on May 18, 2007, at 08:10 AM

I agree with Pm.

Posted by Blues on May 18, 2007, at 09:58 AM

i'll try it! eheh!

Posted by Kathryn Andersen on May 19, 2007, at 04:52 PM

Really? Cool!

 0: 00.00 00.00 config start
 1: 00.01 config end
 2: 00.20 MarkupToHTML begin
 3: 00.23 MarkupToHTML end
 4: 00.23 MarkupToHTML begin
 5: 00.23 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 6: 00.24 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 7: 00.25 MarkupToHTML end
 8: 00.25 MarkupToHTML begin
 9: 00.25 MarkupToHTML end
10: 00.25 now