0 Votes

Changes for page Conditioning

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

From version 34.1
edited by Ryan C
on 2025/05/03 15:17
Change comment: There is no comment for this version
To version 25.1
edited by Ryan C
on 2025/04/28 05:59
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,2 +1,15 @@
1 -{{video attachment="Propaganda.mp4"/}}
2 -{{video attachment="2025-02-26_05-18-58_0.mp4"/}}
1 +{{velocity}}
2 +#set ($attachmentName = "Propaganda.mp4")
3 +#set ($attachmentURL = "$doc.getAttachmentURL($attachmentName, 'download')")
4 +
5 +#if ($attachmentURL)
6 + <video width="640" height="360" controls>
7 + <source src="$attachmentURL" type="video/mp4">
8 + Your browser does not support the video tag.
9 + </video>
10 +#else
11 + <p>Error: Could not find attachment '$attachmentName'. Please ensure it exists and the filename is correct.</p>
12 +#end
13 +{{/velocity}}
14 +
15 +
2025-02-26_05-18-58_0.mp4
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.XWikiGuest
Size
... ... @@ -1,1 +1,0 @@
1 -40.7 MB
Content