Site /
PmFormTemplates
See Cookbook:PmForm. You can create local PmForm templates in the page Site.LocalTemplates.
Contents
#mailform
This form is displayed when form=#mailform
is displayed by a pmform target.
[[#mailform]] (:input pmform target={$$target} successpage="{$$successpage}" :) (:input default request=1:) (:messages:) ||width='' ||$[Your address]: ||(:input text from size=30:) || ||$[Subject]: ||(:input text subject size=30:) || $[Message]:\\ (:input textarea text rows=15 cols=60:)\\ {$Captcha} (:input captcha:) \\ (:input submit name=post value='$[Send]':) (:input end:) [[#mailformend]] |
#mailpost
This specifies the message to be sent when fmt=#mailpost
is given by a pmform target. It verifies the existence of a from address, subject, and message text.
[[#mailpost]] {$$text} ========== Sent via PmForm at {$$PageUrl} [[#mailpostend]] |
#commentform
[[#commentform]] (:input pmform target=comments:) (:input default request=1:) (:input default author "{$Author}" :) '''Post a comment:''' (:messages:) (:input text author:) \\ Comments: \\ (:input textarea text rows=3 cols=40:) \\ (:input submit name=post value="$[Post]" :) (:input hidden csum "Posted a comment via PmForm":) (:input end:) [[#commentformend]] |
#talkpost
[[#talkpost]] -> Posted by {$$author} on {$$CurrentTime} {$$text} [[#talkpostend]] |