Changes for page View File

Last modified by Admin Trust-IT on 2026/05/29 08:29

From version 1.3
edited by Admin Trust-IT
on 2026/05/29 07:53
Change comment: There is no comment for this version
To version 2.3
edited by Admin Trust-IT
on 2026/05/29 08:29
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -1,3 +1,4 @@
1 +{{velocity}}
1 1  #set($fileName = $xcontext.macro.params.get('att--filename'))
2 2  #if("$!fileName" == "")
3 3   #set($fileName = $xcontext.macro.params.name)
... ... @@ -6,5 +6,6 @@
6 6  #if("$!fileName" != "")
7 7   [[image:icon:attach]] [[$fileName>>attach:$fileName]]
8 8  #else
9 - //Allegato non specificato//
10 + //Attachment not specified//
10 10  #end
12 +{{/velocity}}
Supports inline mode
... ... @@ -1,1 +1,1 @@
1 -No
1 +Yes
XWiki.WikiMacroParameterClass[1]
Parameter description
... ... @@ -1,1 +1,1 @@
1 -Nome dell'allegato da mostrare.
1 +Attachment name
Parameter mandatory
... ... @@ -1,1 +1,1 @@
1 -Yes
1 +No
XWiki.WikiMacroParameterClass[2]
Parameter description
... ... @@ -1,1 +1,0 @@
1 -Pagina che contiene l'allegato (default: pagina corrente).
Parameter mandatory
... ... @@ -1,1 +1,0 @@
1 -No
Parameter name
... ... @@ -1,1 +1,1 @@
1 -page
1 +att--filename
XWiki.WikiMacroParameterClass[3]
Parameter description
... ... @@ -1,1 +1,0 @@
1 -Larghezza (default 100%).
Parameter mandatory
... ... @@ -1,1 +1,0 @@
1 -No
Parameter name
... ... @@ -1,1 +1,0 @@
1 -width
XWiki.WikiMacroParameterClass[4]
Parameter description
... ... @@ -1,1 +1,0 @@
1 -Altezza (default 600px).
Parameter mandatory
... ... @@ -1,1 +1,0 @@
1 -No
Parameter name
... ... @@ -1,1 +1,0 @@
1 -height