Recent Changes - Search:

Photo gallery home

Local Templates

#dataform

This form is displayed when (:pmform savedata:) is used.

Prerequsities:
  • cookbook pmform must be installed
  • config.php must contain this line : $PmForm['savedata'] = 'saveto={$FullName} form=#dataform fmt=#datapost';
  • see also : Site.PmFormTemplates which is part of PmForm cookbook installation in wikilib.d folder
[[#dataform]]
(:input pmform target=savedata :)
(:input default source={*$FullName} :)
(:input default request=1 :)
(:messages:)
Name: (:input text name size=25 :)
Email: (:input text email size=25 :)
(:input submit :)
(:input end:)
[[#dataformend]]

#datapost

[[#datapost]]
(:template defaults where=below :)* {$$name} can be reached at {$$email}
[[#datapostend]]

youtubeparamsconf

  • config.php : $PmForm['youtubeparamsconf'] = 'saveto={$FullName} form=#youtubeparamsform fmt=#youtubeparamspost';
  • usage :
    (:pmform youtubeparamsconf :)
    (:SCALE:scale=0.5:)
    (:youtube xxxyyyxxx {$:SCALE} :)

#youtubeparamsform

[[#youtubeparamsform]]
(:input pmform target=youtubeparamsconf :)
(:input default source={*$FullName} :)
(:input default request=1 :)
Youtube params : (:input text $:SCALE size=25 :)(:input submit name=save value="Save" :)
(:input end:)
[[#youtubeparamsformend]]

#youtubeparamspost

(:template require SCALE errmsg="format:scale=0.5":)

[[#youtubeparamspost]]
(:template defaults savevars=$:SCALE :)
[[#youtubeparamspostend]]


                 __                            _                                 
           _____/ /___ __   ______  ____ ___  (_)____        _________  ____ ___ 
          / ___/ / __ `/ | / / __ \/ __ `__ \/ / ___/       / ___/ __ \/ __ `__ \
         (__  ) / /_/ /| |/ / /_/ / / / / / / / /     _    / /__/ /_/ / / / / / /
        /____/_/\__,_/ |___/\____/_/ /_/ /_/_/_/     (_)   \___/\____/_/ /_/ /_/ 
Edit - History - Print - Recent Changes - Search
Page last modified on 2017-04-09 10:17