Changes for page View File Macro
Summary
Details
- Page properties
-
- Content
-
... ... @@ -14,22 +14,4 @@ 14 14 15 15 = Example Usage = 16 16 17 -Thumbnails side by side: 18 18 19 -{{view-file display="thumbnail" name="Test.ppt"/}} {{view-file display="thumbnail" name="TestPDF.pdf"/}} 20 - 21 -Or standalone: 22 - 23 -{{view-file name="Test.ppt"/}} 24 - 25 -In a paragraph: {{view-file name="Test.ppt"/}} 26 - 27 - 28 -Full PDF: 29 - 30 -{{view-file display="full" name="TestPDF.pdf"/}} 31 - 32 -Full Presentation: 33 - 34 -{{view-file display="full" name="Test.ppt"/}} 35 -
- 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 ($name = $xcontext.macro.params.name) 3 +#set ($page = $xcontext.macro.params.page) 4 +#set ($display = $xcontext.macro.params.display) 5 +#set ($width = $xcontext.macro.params.width) 6 +#set ($height = $xcontext.macro.params.height) 7 + 8 +#viewFile($name $page $display $width $height) 9 +{{/velocity}} 10 + - Default categories
-
... ... @@ -1,0 +1,1 @@ 1 +Content - Macro description
-
... ... @@ -1,0 +1,2 @@ 1 +Displays a file viewer for attachments (PDF, images, etc). 2 + - Macro id
-
... ... @@ -1,0 +1,1 @@ 1 +view-file - Macro name
-
... ... @@ -1,0 +1,1 @@ 1 +view-file - 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 +The exact name of the attachment (e.g. myfile.pdf) - Parameter mandatory
-
... ... @@ -1,0 +1,1 @@ 1 +Yes - Parameter name
-
... ... @@ -1,0 +1,1 @@ 1 +name - Parameter type
-
... ... @@ -1,0 +1,1 @@ 1 +unknown
- XWiki.WikiMacroParameterClass[1]
-
- Parameter description
-
... ... @@ -1,0 +1,1 @@ 1 +The page that holds the attachment (e.g. Studies.MyFilePage) - Parameter mandatory
-
... ... @@ -1,0 +1,1 @@ 1 +No - Parameter name
-
... ... @@ -1,0 +1,1 @@ 1 +page - Parameter type
-
... ... @@ -1,0 +1,1 @@ 1 +unknown
- XWiki.WikiMacroParameterClass[2]
-
- Parameter default value
-
... ... @@ -1,0 +1,1 @@ 1 +thumbnail (button in inline mode) - Parameter description
-
... ... @@ -1,0 +1,1 @@ 1 +Values below ⬇️ - Parameter mandatory
-
... ... @@ -1,0 +1,1 @@ 1 +No - Parameter name
-
... ... @@ -1,0 +1,1 @@ 1 +display - Parameter type
-
... ... @@ -1,0 +1,1 @@ 1 +unknown
- XWiki.WikiMacroParameterClass[3]
-
- Parameter default value
-
... ... @@ -1,0 +1,1 @@ 1 +100% for the full view or 100px for the thumbnail - Parameter description
-
... ... @@ -1,0 +1,1 @@ 1 +Examples: 100%, 600px - Parameter mandatory
-
... ... @@ -1,0 +1,1 @@ 1 +No - Parameter name
-
... ... @@ -1,0 +1,1 @@ 1 +width - Parameter type
-
... ... @@ -1,0 +1,1 @@ 1 +unknown
- XWiki.WikiMacroParameterClass[4]
-
- Parameter description
-
... ... @@ -1,0 +1,1 @@ 1 +Examples: 100%, 600px - Parameter mandatory
-
... ... @@ -1,0 +1,1 @@ 1 +No - Parameter name
-
... ... @@ -1,0 +1,1 @@ 1 +height - Parameter type
-
... ... @@ -1,0 +1,1 @@ 1 +unknown
- XWiki.WikiMacroParameterClass[5]
-
- Parameter description
-
... ... @@ -1,0 +1,1 @@ 1 +Alias for attachment name (used for display titles) - Parameter mandatory
-
... ... @@ -1,0 +1,1 @@ 1 +No - Parameter name
-
... ... @@ -1,0 +1,1 @@ 1 +alt - Parameter type
-
... ... @@ -1,0 +1,1 @@ 1 +unknown