I'm struggling to get zap to create a page using a template. My ultimate goal is to have a zap form filled out and emailed to me. For now, I'll take just getting a template page to work with Hello World! displayed.
<br><br>Stats:<br>pmwiki-2.2.0-beta44<br>Zap 5/31/07<br>Zap Toolbox 5/31/07<br><br>Have cut and pasted the test install code: installation successful.<br><br>I took the make page markup and modified it slightly -- I added the pagetemplate line and a field for additional text.
<br><br>(:messages:)<br>(:zapform:)<br>(:zap pagetemplate=Systems.TestFormTemplate:)<br>||Create: ||(:input text makepage:)<br>||Add some text: ||(:input text txtWords:)<br>|| ||(:input submit:)<br>(:zap if1=&quot;namefmt {makepage} ? create=Systems.{makepage}&quot;:)
<br>(:zap if2=&quot;! namefmt {makepage} ? warn=Invalid page format. &quot;:)<br><br>(:zap create=&quot;&quot;:)<br>(:zapend:)<br><br>(:if false:)<br>[[#ID]]<br>(:messages:)<br>(:zapform:)<br>Create: (:input text create:) (:input submit:)
<br>(:zapend:)<br>[[#ID]]<br>(:if:)<br><br>I created the Systems.TestFormTemplate with the following:<br><br>Page Name entered: {makepage}<br>File Name: {create}<br>Some words: {txtWords}<br><br><br>When I run the form, I do get a new page, but it&#39;s always blank. I am misunderstanding templates on a zap and pmwiki level. Horribly confused.
<br><br>Thanks<br>Scott Smith<br><br>