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

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

От версии 3.1
отредактировано Андрей Ганьков
на 2023/04/03 09:29
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-index-tree-macro/15.2]
К версии 2.1
отредактировано Андрей Ганьков
на 2022/08/01 10:37
Изменить комментарий: Install extension [org.xwiki.platform:xwiki-platform-index-tree-macro/14.6]

Сводка

Подробности

Свойства страницы
Содержимое
... ... @@ -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)