Изменения документа Home
Редактировал(а) Андрей Ганьков 2025/03/13 15:09
От версии 11.1
отредактировано Андрей Ганьков
на 2025/03/13 14:56
на 2025/03/13 14:56
Изменить комментарий:
К данной версии нет комментариев
К версии 12.1
отредактировано Андрей Ганьков
на 2025/03/13 15:06
на 2025/03/13 15:06
Изменить комментарий:
К данной версии нет комментариев
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -11,17 +11,43 @@ 11 11 = Проекты = 12 12 13 13 {{velocity}} 14 -#set($children = $xwiki.getDocument($doc.fullName).getChildren()) 15 -#if ($children.size() > 0) 14 +#set($parentPath = "Новая страница.WebHome") 15 +#set($parentDoc = $xwiki.getDocument($parentPath)) 16 +#set($allChildren = $parentDoc.getChildren()) 17 + 18 +#if ($allChildren.size() > 0) 19 + {{html clean="false"}} 20 + <style> 21 + .horizontal-list { 22 + display: flex; 23 + flex-wrap: wrap; 24 + gap: 15px; 25 + font-size: 18px; /* Увеличенный шрифт */ 26 + } 27 + .child-page { 28 + background-color: #f0f0f0; 29 + padding: 10px; 30 + border-radius: 5px; 31 + text-decoration: none; 32 + color: #333; 33 + } 34 + .child-page:hover { 35 + background-color: #d0d0d0; 36 + } 37 + </style> 38 + 16 16 <div class="horizontal-list"> 17 - #foreach($child in $ children)40 + #foreach($child in $allChildren) 18 18 #set($childDoc = $xwiki.getDocument($child)) 19 19 <a href="$childDoc.getURL()" class="child-page">$childDoc.getTitle()</a> 20 20 #end 21 21 </div> 45 + {{/html}} 22 22 #end 23 23 {{/velocity}} 24 24 49 + 50 + 25 25 = Облако тегов = 26 26 27 27 {{tagcloud/}}