0 Votes

Changes for page PublicSubmission

Last modified by Ryan C on 2025/06/08 18:17

From version 5.1
edited by Ryan C
on 2025/06/08 17:58
Change comment: There is no comment for this version
To version 13.1
edited by Ryan C
on 2025/06/08 18:08
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,4 +1,15 @@
1 -{{velocity}}
2 -Hello from a test Velocity macro! Time: $datetool.format('yyyy-MM-dd HH:mm:ss', $datetool.now())
1 +{{velocity output="yes"}}
2 +<p>Request method: $request.getMethod()</p>
3 +<p>Request parameters: #foreach($p in $request.parameterNames) $p = "$request.getParameter($p)"<br/>#end</p>
4 +
5 +#if($request.headline)
6 + <div style="color:green;font-weight:bold;">Received submission: $request.headline</div>
7 +#else
8 + <form method="post" action="$doc.getURL()">
9 + <input type="hidden" name="form_token" value="$services.csrf.getToken()" />
10 + <label>Headline: <input type="text" name="headline"/></label>
11 + <button type="submit">Submit</button>
12 + </form>
13 +#end
3 3  {{/velocity}}
4 4