0 Votes

Changes for page PublicSubmission

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

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

Summary

Details

Page properties
Content
... ... @@ -1,13 +1,4 @@
1 -{{velocity output="yes"}}
2 -#if($request.headline)
3 - <div class="alert alert-success">Submitted: $request.headline</div>
4 -#else
5 - <form method="post" action="$doc.getURL()">
6 - <input type="hidden" name="form_token" value="$services.csrf.getToken()" />
7 - <label>Headline</label>
8 - <input type="text" name="headline" />
9 - <button type="submit">Submit</button>
10 - </form>
11 -#end
1 +{{velocity}}
2 +Hello from a test Velocity macro! Time: $datetool.format('yyyy-MM-dd HH:mm:ss', $datetool.now())
12 12  {{/velocity}}
13 13