Изменения документа Document Tree Macros

Редактировал(а) Давид Гавриков 2024/10/22 15:18

От версии 1.1
отредактировано Андрей Ганьков
на 2020/03/30 19:01
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-index-tree-macro/12.1]
К версии 4.1
отредактировано Давид Гавриков
на 2024/05/29 15:58
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-index-tree-macro/16.3.1]

Сводка

Подробности

Свойства страницы
Автор документа
... ... @@ -1,1 +1,1 @@
1 -XWiki.gav
1 +XWiki.gavrikof
Содержимое
... ... @@ -316,10 +316,6 @@
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))
323 323   #set ($plainTitle = $translatedDocument.plainTitle)
324 324   #if (!$stringtool.isBlank($plainTitle))
325 325   #set ($label = $plainTitle)
... ... @@ -483,7 +483,8 @@
483 483   'canDelete': $canEditDoc,
484 484   'canMove': $canEditDoc,
485 485   'canCopy': true,
486 - 'deleteURL': $attachment.document.getAttachmentURL($attachment.filename, 'delattachment')
482 + 'deleteURL': $attachment.document.getAttachmentURL($attachment.filename, 'delattachment'),
483 + 'mimetype': $attachment.mimeType
487 487   },
488 488   'a_attr': {
489 489   'href': $attachment.document.getAttachmentURL($attachment.filename)
... ... @@ -1125,6 +1125,7 @@
1125 1125  #macro (searchAttachmentsSolr $text $limit $return)
1126 1126   #set ($params = [
1127 1127   'fq=type:ATTACHMENT',
1125 + 'fq=locale:*',
1128 1128   'qf=filename^4 attcontent',
1129 1129   'fl=type wiki spaces name filename'
1130 1130   ])