Изменения документа Home
Редактировал(а) Андрей Ганьков 2025/03/13 15:09
От версии 10.1
отредактировано Андрей Ганьков
на 2025/03/13 14:55
на 2025/03/13 14:55
Изменить комментарий:
К данной версии нет комментариев
К версии 13.1
отредактировано Андрей Ганьков
на 2025/03/13 15:06
на 2025/03/13 15:06
Изменить комментарий:
К данной версии нет комментариев
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -11,13 +11,38 @@ 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) 18 - <a href="$child.getURL()" class="child-page">$child.getTitle()</a> 40 + #foreach($child in $allChildren) 41 + #set($childDoc = $xwiki.getDocument($child)) 42 + <a href="$childDoc.getURL()" class="child-page">$childDoc.getTitle()</a> 19 19 #end 20 20 </div> 45 + {{/html}} 21 21 #end 22 22 {{/velocity}} 23 23