0 Votes

Changes for page Video Upload

Last modified by Ryan C on 2025/06/28 04:41

From version 1.1
edited by Ryan C
on 2025/06/28 04:18
Change comment: There is no comment for this version
To version 2.1
edited by Ryan C
on 2025/06/28 04:23
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Cached
... ... @@ -1,0 +1,1 @@
1 +No
Asynchronous rendering
... ... @@ -1,0 +1,1 @@
1 +No
Macro code
... ... @@ -1,0 +1,10 @@
1 +{{velocity}}
2 +#set($attachment = $wikimacro.parameters.video)
3 +
4 +#if ("$attachment" != '')
5 + {{video attachment="$attachment"/}}
6 +#else
7 + (% style="color:red; font-weight:bold;" %)Please select a video file to upload.
8 +#end
9 +{{/velocity}}
10 +
Macro content type
... ... @@ -1,0 +1,1 @@
1 +Attachment
Macro content availability
... ... @@ -1,0 +1,1 @@
1 +No content
Default categories
... ... @@ -1,0 +1,1 @@
1 +Content
Macro description
... ... @@ -1,0 +1,1 @@
1 +Upload and embed a video with visual picker
Execution is isolated
... ... @@ -1,0 +1,1 @@
1 +No
Macro id
... ... @@ -1,0 +1,1 @@
1 +videoupload
Macro name
... ... @@ -1,0 +1,1 @@
1 +Video Upload
Supports inline mode
... ... @@ -1,0 +1,1 @@
1 +Yes
Macro visibility
... ... @@ -1,0 +1,1 @@
1 +Current Wiki
XWiki.WikiMacroParameterClass[0]
Parameter description
... ... @@ -1,0 +1,1 @@
1 +Select a video file to upload
Parameter mandatory
... ... @@ -1,0 +1,1 @@
1 +Yes
Parameter name
... ... @@ -1,0 +1,1 @@
1 +Video