Изменения документа HRlink. Новости об обновлениях
Редактировал(а) HRlink 22.08.2025
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -1,9 +1,10 @@ 1 -{{children sort="date" order="desc" depth="1"/}} 1 +{{velocity}} 2 +#set($category = "Blog.HRlink.-Novosti-ob-obnovleniiakh-.WebHome") 3 +#set($query = ", BaseObject as obj, StringProperty as cat where obj.name = doc.fullName and obj.className = 'Blog.BlogPostClass' and cat.id.id = obj.id and cat.name = 'category' and cat.value = :category order by doc.creationDate desc") 4 +#set($results = $services.query.hql($query).bindValue('category', $category).setLimit(15).execute()) 2 2 3 -{{html clean="false"}} 4 -<style> 5 - .xwikirendering-macro-children ul { list-style: none; padding-left: 0; } 6 - .xwikirendering-macro-children li { padding: 8px 0; border-bottom: 1px solid #eee; } 7 - .xwikirendering-macro-children li:last-child { border-bottom: 0; } 8 -</style> 9 -{{/html}} 6 +#foreach($docName in $results) 7 + #set($doc = $xwiki.getDocument($docName)) 8 + #displayBlogPost($doc) 9 +#end 10 +{{/velocity}}