Changes for page Attachments
Last modified by Sebastian Marsching on 2024/01/08 23:13
From version 10.1
edited by Sebastian Marsching
on 2023/08/13 16:14
on 2023/08/13 16:14
Change comment:
Migrated property [type] from class [XWiki.WikiMacroParameterClass]
To version 8.1
edited by Sebastian Marsching
on 2023/02/20 12:47
on 2023/02/20 12:47
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/14.10.4]
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -33,7 +33,7 @@ 33 33 #set ($property = "$!{xcontext.macro.params.property}") 34 34 #set ($object = $numbertool.toNumber("$!{xcontext.macro.params.object}").intValue()) 35 35 #if ("$!{object}" != $!{xcontext.macro.params.object}) 36 - #set ($object = ${ targetdoc.getObject($classname).number})36 + #set ($object = ${doc.getObject($classname).number}) 37 37 #if ("$!{object}" == '') 38 38 #set ($object = 0) 39 39 #end ... ... @@ -94,7 +94,7 @@ 94 94 #set ($savemode = 'form') 95 95 #end 96 96 97 -#set ($propValue = "$!{ targetdoc.getObject($classname, $object).getProperty($property).value}")97 +#set ($propValue = "$!{doc.getObject($classname, $object).getProperty($property).value}") 98 98 ## 99 99 100 100 #macro (attachmentPicker_displayAttachment $name $displayImage $withLink $forceElement)