0 Votes

Wiki source code of Conditioning

Version 28.1 by Ryan C on 2025/04/28 06:03

Show last authors
1 {{velocity}}
2 #set ($attachmentName = "Propaganda.mp4")
3 #set ($attachmentURL = "$doc.getAttachmentURL($attachmentName, 'download')")
4
5 #if ($attachmentURL)
6 #set ($videoTag = "<video width='640' height='360' controls><source src='" + $attachmentURL + "' type='video/mp4'>Your browser does not support the video tag.</video>")
7 $esc.html($videoTag)
8 #else
9 <p>Error: Could not find attachment '$attachmentName'. Please ensure it exists and the filename is correct.</p>
10 #end
11 {{/velocity}}