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 3.1
edited by Ryan C
on 2025/06/28 04:41
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
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 visibility
... ... @@ -1,0 +1,1 @@
1 +Current Wiki
Execution is isolated
... ... @@ -1,0 +1,1 @@
1 +No
Cached
... ... @@ -1,0 +1,1 @@
1 +No
Supports inline mode
... ... @@ -1,0 +1,1 @@
1 +Yes
Macro description
... ... @@ -1,0 +1,1 @@
1 +Upload and embed a video with visual picker
Asynchronous rendering
... ... @@ -1,0 +1,1 @@
1 +No
Default categories
... ... @@ -1,0 +1,1 @@
1 +Content
Macro name
... ... @@ -1,0 +1,1 @@
1 +Video Upload
Macro id
... ... @@ -1,0 +1,1 @@
1 +videoupload
Macro content type
... ... @@ -1,0 +1,1 @@
1 +org.xwiki.model.reference.AttachmentReference
Macro content availability
... ... @@ -1,0 +1,1 @@
1 +No content
XWiki.WikiMacroParameterClass[0]
Parameter name
... ... @@ -1,0 +1,1 @@
1 +Video
Parameter description
... ... @@ -1,0 +1,1 @@
1 +Select a video file to upload
Parameter mandatory
... ... @@ -1,0 +1,1 @@
1 +Yes

XWiki AI Chat