Changes for page Attachments
Last modified by Vladislav ANTOLÍK on 11.11.2026, 08:59
From version 6.1
edited by Vladislav ANTOLÍK
on 11.11.2026, 08:59
on 11.11.2026, 08:59
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/17.10.15]
To version 5.1
edited by Vladislav ANTOLÍK
on 19.10.2026, 10:35
on 19.10.2026, 10:35
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/17.10.14]
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -116,32 +116,14 @@ 116 116 #end 117 117 #end 118 118 #if ($attachmentRef) 119 - #set ($attachmentResource = $services.rendering.escape($services.model.serialize($attachmentRef, 'local'), 120 - 'xwiki/2.1')) 119 + #set ($attachmentResource = $services.model.serialize($attachmentRef, 'local')) 121 121 #else 122 122 #set ($attachmentResource = '') 123 123 #end 124 - #set ($escapedCssClass = $services.rendering.escape($!cssClass, 'xwiki/2.1')) 125 125 #if ($displayImage) 126 - (% class="${escapedCssClass}#if (!$attachment) hidden#end" %)(((## 127 - #if ("$!{attachmentResource}" != '' || $forceElement)## 128 - #if ($withLink)[[#{end}## 129 - [[image:${attachmentResource}$!{imageParams}]]## 130 - #if ($withLink)>>attach:${attachmentResource}||rel=lightbox]]#{end}## 131 - #{end}## 132 - )))## 124 + (% class="${services.rendering.escape($!cssClass, 'xwiki/2.1')}#if (!$attachment) hidden#end" %)(((#if ("$!{attachmentResource}" != '' || $forceElement)#if($withLink)[[#end[[image:$services.rendering.escape(${attachmentResource}, 'xwiki/2.1')$!{imageParams}]]#if($withLink)>>attach:$services.rendering.escape(${attachmentResource},'xwiki/2.1')||rel=lightbox]]#{end}#end)))## 133 133 #else 134 - (% class="${escapedCssClass}" %)## 135 - #if ("$!{attachmentResource}" != '' || $forceElement)## 136 - #if ($withLink)## 137 - [[attach:${attachmentResource}||rel=__blank]]## 138 - #{else}## 139 - (% class="displayed" %)## 140 - #if ($targetPermView)$!{services.rendering.escape($!{attachmentName}, 'xwiki/2.1')}#{else}Access Denied#{end}## 141 - (% %)## 142 - #{end}## 143 - #{end}## 144 - (%%)## 126 + (% class="${services.rendering.escape($!cssClass, 'xwiki/2.1')}" %)#if ("$!{attachmentResource}" != '' || $forceElement)#if ($withLink)[[attach:${attachmentResource}||rel=__blank]]#{else}(% class="displayed" %)#if($targetPermView)$!{services.rendering.escape($!{attachmentName}, 'xwiki/2.1')}#{else}Access Denied#{end}(% %)#{end}#end(%%)## 145 145 #end 146 146 #end 147 147