Изменения документа Поддомены2
отредактировано Andrey Shilin
на 2024/12/24 11:22
на 2024/12/24 11:22
отредактировано Andrey Shilin
на 2025/04/18 16:10
на 2025/04/18 16:10
Изменить комментарий:
Imported from XAR
Комментарий
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -16,7 +16,9 @@ 16 16 #set ($selfShow = true) 17 17 #end 18 18 #end 19 -#foreach ($child in $mainDoc.getChildrenReferences()) 19 +#set($q = "select doc.fullName from XWikiDocument as doc, BaseObject as obj where doc.fullName = obj.name and obj.className like 'SUZ.Code.SubDomainClass' and doc.space not like '%Sandbox%'") 20 +#set($query = $services.query.hql($q).execute()) 21 +#foreach ($child in $query) 20 20 #set ($childDoc = $xwiki.getDocument($child).getTranslatedDocument()) 21 21 #set ($xobject = $childDoc.getObject('SUZ.Code.SubDomainClass')) 22 22 #if ($xobject) ##Включаем только страницы с SubDomainClass ... ... @@ -39,7 +39,7 @@ 39 39 #set($row = "Все") 40 40 #end 41 41 #set ($menuSubDomains = [{"title": '', "value": $row}]) 42 -#set ($discard = $menuSubDomains.addAll($ sorttool.sort($subdomains, ["title", "value"])))44 +#set ($discard = $menuSubDomains.addAll($collectiontool.sort($subdomains, ["title", "value"]))) 43 43 #foreach ($row in $menuSubDomains) 44 44 #if ($row.title == $currentSubDomain and $selfShow) 45 45 * **$row.value**