Recent Changes - Search:

PmWiki

pmwiki.org

edit SideBar

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.

July 09, 2010, at 04:18 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(approve sites)

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!

Post a comment:

Name:
Comments:

Edit - History - Print - Recent Changes - Search
Page last modified on July 09, 2010, at 04:18 PM