Modifications pour le document Document Tree Macros
Modifié par Florent Charton le 2026/03/13 11:03
Depuis la version 2.1
modifié par Florent Charton
sur 2024/08/08 18:43
sur 2024/08/08 18:43
Commentaire de modification :
Install extension [org.xwiki.platform:xwiki-platform-index-tree-macro/15.10.11]
À la version 1.1
modifié par superadmin
sur 2022/06/20 08:48
sur 2022/06/20 08:48
Commentaire de modification :
Install extension [org.xwiki.platform:xwiki-platform-index-tree-macro/13.10.6]
Résumé
-
Propriétés de la Page (2 modifications, 0 ajouts, 0 suppressions)
Détails
- Propriétés de la Page
-
- Auteur du document
-
... ... @@ -1,1 +1,1 @@ 1 - xwiki:XWiki.fcharton1 +XWiki.superadmin - Contenu
-
... ... @@ -316,6 +316,10 @@ 316 316 #if ($canViewDoc && $docTreeConfig.showDocumentTitle) 317 317 ## Display the translated title. 318 318 #set ($translatedDocument = $xwiki.getDocument($documentReference).translatedDocument) 319 + ## Make sure the displayed title is not affected by the sheet request parameter (e.g. when $translatedDocument is 320 + ## the current document). By setting the title (even if we don't change it) the internal document instance is cloned 321 + ## so it's going to be different than the current document instance (which is the target of the sheet parameter). 322 + #set ($discard = $translatedDocument.setTitle($translatedDocument.title)) 319 319 #set ($plainTitle = $translatedDocument.plainTitle) 320 320 #if (!$stringtool.isBlank($plainTitle)) 321 321 #set ($label = $plainTitle) ... ... @@ -479,8 +479,7 @@ 479 479 'canDelete': $canEditDoc, 480 480 'canMove': $canEditDoc, 481 481 'canCopy': true, 482 - 'deleteURL': $attachment.document.getAttachmentURL($attachment.filename, 'delattachment'), 483 - 'mimetype': $attachment.mimeType 486 + 'deleteURL': $attachment.document.getAttachmentURL($attachment.filename, 'delattachment') 484 484 }, 485 485 'a_attr': { 486 486 'href': $attachment.document.getAttachmentURL($attachment.filename) ... ... @@ -1122,7 +1122,6 @@ 1122 1122 #macro (searchAttachmentsSolr $text $limit $return) 1123 1123 #set ($params = [ 1124 1124 'fq=type:ATTACHMENT', 1125 - 'fq=locale:*', 1126 1126 'qf=filename^4 attcontent', 1127 1127 'fl=type wiki spaces name filename' 1128 1128 ])