文档更改Home
由 Yang Sheng 于 2025-02-42,18:57 最后修改
摘要
-
页面属性 (1 修改, 0 新增, 0 删除)
细节
- 页面属性
-
- 内容
-
... ... @@ -28,7 +28,16 @@ 28 28 #set($output = "") 29 29 30 30 ## 查询每个一级链接下所有子页面的最近更新 31 - #set($hqlQuery = "select doc.fullName from XWikiDocument doc where doc.fullName like :spacePattern and doc.fullName not like '%:WebPreferences' and doc.fullName not like '%:WebHome' and doc.fullName not like '%:WebSearch' and doc.fullName not like '%:WebRss' and doc.fullName not like '%:WebStatistics' order by doc.date desc") 31 + #set($hqlQuery = " 32 + select doc.fullName 33 + from XWikiDocument doc 34 + where doc.fullName like :spacePattern 35 + and doc.fullName not like '%:WebPreferences' 36 + and doc.fullName not like '%:WebHome' 37 + and doc.fullName not like '%:WebSearch' 38 + and doc.fullName not like '%:WebRss' 39 + and doc.fullName not like '%:WebStatistics' 40 + order by doc.date desc") 32 32 #set($query = $services.query.hql($hqlQuery)) 33 33 #set($query = $query.bindValue("spacePattern", "${topPage}.%")) 34 34 #set($query = $query.setLimit(3)) ... ... @@ -46,10 +46,7 @@ 46 46 #set($docTitle = "Untitled Document") 47 47 #end 48 48 ## 添加到输出 49 - #if($output != "") 50 - #set($output = "${output}, ") 51 - #end 52 - #set($output = "${output}[[${docTitle}>>${document.getExternalURL('view')}]]") 58 + #set($output = "$output[[${docTitle}>>${document.getExternalURL('view')}]]\n") 53 53 #set($hasUpdates = true) 54 54 #end 55 55 #end ... ... @@ -58,10 +58,10 @@ 58 58 59 59 ## 仅在有更新时显示标题和内容 60 60 #if($hasUpdates) 61 - ## 输出标题 并换行67 + ## 输出标题 62 62 = $topPage = 63 - ## 输出内容 并换行64 - $output \n\n69 + ## 输出内容 70 + $output 65 65 #end 66 66 #end 67 67 {{/velocity}}