Recent Changes - Search:

Pm Form Templates

#mailform

This form is displayed when form=#mailform is displayed by a pmform target.

[[#mailform]]
(:template default successpage='' :)
(: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:)\\
(: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]]
(:template require from errmsg="$[Missing 'from' address]" :)
(:template require subject errmsg="$[Missing message subject]" :)
(:template require text errmsg="$[Message text required]" :) 
{$$text}

==========
Sent via PmForm at {$$PageUrl}
[[#mailpostend]] 

#eventform

This form is displayed when form=#eventform is displayed by a pmform target.

[[#eventform]]
(:template default successpage='Events/Thank-you' :)
(:input pmform target={$$target} successpage="{$$successpage}" :)
(:input default request=1:)
(:messages:)
$['''-Receive updates to the Events Calendar by entering your email-''':] \\
$[Your email]: (:input text from size=40:) \\
Enter code: {$Captcha} (:input captcha:) (:input submit name=post value='$[Subscribe]':)  
(:input hidden subject 'Subscribe to Event Changes on placentiabay.ca':) 
(:input hidden comment 'Include email in notifications - Jason':)
(:input end:)
[[#eventformend]]

#eventpost

This specifies the message to be sent when fmt=#eventpost is given by a pmform target. It verifies the existence of a from address.

[[#eventpost]]
(:template require from errmsg="$[Missing email address]" :)
(:template requires if="captcha" errmsg="Please re-enter the code" :)
{$$comment}
Email: {$$from}
==========
Sent via PmForm at {$$PageUrl}
[[#eventpostend]] 

#commentform

[[#commentform]]
(:input pmform target=comments:)
(:input default request=1:)
(:input default author "{$Author}" :)
'''Post a comment:'''
(:messages:)
Name: (:input text author:) \\
Comments: \\
(:input textarea text rows=10 cols=40:) \\
(:input submit name=post value="$[Post]" :)
(:input end:)
[[#commentformend]]

#talkpost

[[#talkpost]]
(:template defaults where=above :) 
(:template require author errmsg="$[Missing name]":)
>>talkpost<<
-> Posted by {$$author} on {$$CurrentTime}
{$$text}
>><<

[[#talkpostend]]
Edit - History - Print - Recent Changes - Search
Page last modified on July 07, 2014, at 11:08 PM