Recent Changes - Search:

PmForm

Main sidebar

PmWiki

pmwiki.org

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 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:)

Placement

To control the placement of comments, use the "where" argument, for example:

  • always put new comments at top of a page
     (:pmform  comments where=top:)
  • always put new comments immediately below the (:pmform:) directive
     (:pmform comments where=below:)
  • always put new comments immediately below [[#anchor]]
     (:pmform comments where=below#anchor :)

This will cause comments to appear in reverse chronological order on the page.

  • Similarly, for chronological ordering of comments, we have

where=bottom, where=above, and where=above#anchor .

  • Note: the below#anchor and above#anchor forms have not have been implemented yet in pmform.php -- as of 2.2.0-beta68.

May 06, 2016, at 06:52 PM


Comments:
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!

Posted by BEJ on May 21, 2007, at 04:51 AM

Kul grejs

Posted by Ben Stallings on May 25, 2007, at 05:59 PM

but how does it work? Is "comments" a special, pre-defined format, or is it defined on the template page?

Posted by Petko on December 20, 2008, at 11:30 PM

Now, this was not easy.

Posted by DaveG on December 25, 2008, at 08:08 PM

Easy?

Posted by Mike on January 17, 2009, at 10:04 AM

This is a test and can be deleted!

Posted by Felix on January 19, 2009, at 06:18 PM

Is it ok??

Posted by Marcello on June 13, 2009, at 06:40 AM

Funziona? <b>E l'html?</b>

Posted by al on July 28, 2009, at 01:10 PM

jhhkh

Posted by al on July 28, 2009, at 01:10 PM

jhhgjjgh

Posted by Mira on August 21, 2009, at 10:35 AM

Does this work?

Posted by David on August 21, 2009, at 11:49 AM

asdfasdf

Posted by VvocaogI on September 15, 2009, at 09:07 AM

doors.txt;10;15

Posted by pogay on September 24, 2009, at 10:07 AM

look at my pmwiki choral-site
http://www.wprj.net/tunes

Posted by Alex65 on October 22, 2009, at 01:55 PM

Terminology FRBR offers us a fresh perspective on the structure and relationships of bibliographic and authority records, and also a more precise vocabulary to help future cataloging rule makers and system designers in meeting user needs. ,

Posted by pc on October 28, 2009, at 11:30 AM

really cool?

Posted by Aras on November 18, 2009, at 02:06 AM

Test - do links work? Comments

Posted by Luigi on January 24, 2010, at 03:30 PM

Test test

Posted by Tester on March 17, 2010, at 11:05 AM

Testing

Posted by test on June 19, 2010, at 01:26 AM

fsfsafs

Posted by Jotaaa on July 09, 2010, at 04:18 PM

It Works!

Posted by Petko on February 02, 2011, at 05:32 AM

Just testing...

Posted by Finar on May 02, 2011, at 07:57 AM

The problem is that posting this form deletes my Page Variables, existed on the page before.

Posted by asdf on July 08, 2011, at 09:48 AM

asdf

Posted by cvbm on December 19, 2011, at 05:54 PM

cvbmcbmcvbmcvbm

Posted by kk on May 17, 2012, at 10:59 AM

kk

Posted by teste on December 13, 2012, at 04:08 PM

teste do formulario

Posted by Trizzy on February 16, 2013, at 01:33 PM

It's like you're on a msisoin to save me time and money!

Posted by Trizzy on February 16, 2013, at 01:34 PM

It's like you're on a msisoin to save me time and money!

Posted by Petko on April 13, 2013, at 12:34 PM

just a test

Posted by Petko on April 13, 2013, at 12:36 PM

Another test to see if the ChangeSummary gets updated.

Posted by Petko on April 13, 2013, at 12:37 PM

Another test to see if the ChangeSummary gets updated.

Posted by Test on April 30, 2013, at 02:11 PM

Testing 1, 2, 3...

Posted by Test on May 04, 2013, at 01:49 PM
-)))) ;>_>
3
Posted by Chaak on May 29, 2013, at 10:35 AM

Testing

Linebreak

Special characters ありうえお鰂魚涌杏花邨

Posted by on October 20, 2013, at 10:08 AM

Testing 1, 2, 3...

Posted by Petko on December 25, 2013, at 09:59 AM

test post

Posted by Petko on December 25, 2013, at 10:01 AM

new test

Posted by Petko on May 01, 2014, at 06:17 AM

a

Posted by Petko on May 01, 2014, at 06:17 AM

a

Posted by XES on May 26, 2014, at 05:09 PM

Trying this out. How does it work???!

Posted by XES on May 27, 2014, at 09:27 AM

Check this out: [(approve links) edit diff] -- should be rejected.

Posted by Petko on April 12, 2015, at 10:39 AM

test a comment after migration

Posted by PKHG on April 20, 2015, at 09:07 AM

Let me have a look, seems to work ... Want time displayed not AM PM way.

Looking where to change/set it so.

Posted by Heavy Metal on June 10, 2015, at 04:42 PM

Always play on 10!

Posted by Oops on May 06, 2016, at 06:52 PM

Howdy!

Post a comment:

Name:
Comments:

Edit - History - Print - Recent Changes - Search
Page last modified on May 06, 2016, at 06:52 PM
 0: 00.00 00.00 config start
 1: 00.01 00.00 config end
 2: 00.06 MarkupToHTML begin
 3: 00.17 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 4: 00.19 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 5: 00.45 MarkupToHTML end
 6: 00.46 MarkupToHTML begin
 7: 00.51 MarkupToHTML end
 8: 00.51 MarkupToHTML begin
 9: 00.52 MarkupToHTML end
10: 00.53 now