Изменения документа Поиск по базе
Редактировал(а) Давид Гавриков 2024/07/22 11:15
От версии 2.1
отредактировано Андрей Ганьков
на 2020/09/28 13:32
на 2020/09/28 13:32
Изменить комментарий:
Install extension [org.xwiki.platform:xwiki-platform-search-ui/12.7.1]
К версии 3.1
отредактировано Андрей Ганьков
на 2024/01/24 04:39
на 2024/01/24 04:39
Изменить комментарий:
Install extension [org.xwiki.platform:xwiki-platform-search-ui/15.10.5]
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -82,8 +82,21 @@ 82 82 #set ($discard = $feed.setDescription($services.localization.render('search.rss', [$text]))) 83 83 #set ($discard = $feed.setLanguage("$xcontext.locale")) 84 84 #set ($discard = $feed.setCopyright($xwiki.getXWikiPreference('copyright'))) 85 + #set ($feedOutput = $xwiki.feed.getFeedOutput($feed, $xwiki.getXWikiPreference('feed_type', 'rss_2.0'))) 86 + 85 85 #set ($discard = $response.setContentType('application/rss+xml')) 86 - {{{$xwiki.feed.getFeedOutput($feed, $xwiki.getXWikiPreference('feed_type', 'rss_2.0'))}}} 88 + #set ($characterEncoding = 'utf-8') 89 + ## Make sure the Character Encoding response header matches the character encoding used to write the response and 90 + ## compute its length. 91 + #set ($discard = $response.setCharacterEncoding($characterEncoding)) 92 + ## We write the output directly to the response to avoid the execution of the Rendering Transformations. 93 + #set ($discard = $response.writer.print($feedOutput)) 94 + ## The content length is measured in bytes and one character can use more than one byte. 95 + #set ($discard = $response.setContentLength($feedOutput.getBytes($characterEncoding).size())) 96 + ## Make sure the entire content is send back to the client. 97 + #set ($discard = $response.flushBuffer()) 98 + ## Make sure XWiki doesn't write any more content to the response. 99 + #set ($discard = $xcontext.setFinished(true)) 87 87 #else 88 88 {{include reference="XWiki.Results"/}} 89 89