0 Votes

Changes for page Conditioning

Last modified by Ryan C on 2025/09/10 21:14

From version 32.1
edited by Ryan C
on 2025/04/28 06:17
Change comment: There is no comment for this version
To version 27.1
edited by Ryan C
on 2025/04/28 06:02
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,1 +1,16 @@
1 -{{video attachment="Propaganda.mp4"/}}
1 +{{velocity}}
2 +#set ($attachmentName = "Propaganda.mp4")
3 +#set ($attachmentURL = "$doc.getAttachmentURL($attachmentName, 'download')")
4 +
5 +#if ($attachmentURL)
6 + #set ($encodedAttachmentURL = "{{url reference=\"\$${attachmentURL}\" display=\"link\"}}")
7 + <video width="640" height="360" controls>
8 + <source src="${encodedAttachmentURL}" type="video/mp4">
9 + Your browser does not support the video tag.
10 + </video>
11 +#else
12 + <p>Error: Could not find attachment '$attachmentName'. Please ensure it exists and the filename is correct.</p>
13 +#end
14 +{{/velocity}}
15 +
16 +