文档更改Home

Yang Sheng 于 2025-02-42,18:57 最后修改

从版本 112.1
Yang Sheng编辑
在2025-02-42,00:24上
修改评论: 该版本没有评论
到版本
Yang Sheng编辑
在2025-02-42,01:11上
修改评论: 该版本没有评论

摘要

细节

页面属性
内容
... ... @@ -23,9 +23,12 @@
23 23  ## 定义需要忽略的页面标题列表
24 24  #set($ignoreTitles = ["页面管理", "脚本&自动化"])
25 25  
26 +{{html clean="false" wiki="false"}}
27 +<div class="recent-updates">
28 +{{/html}}
29 +
26 26  ## 输出结果
27 27  #foreach($topPage in $topLevelPages)
28 - = $topPage =
29 29   ## 查询每个一级链接下所有子页面的最近更新
30 30   #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 31   #set($query = $services.query.hql($hqlQuery))
... ... @@ -45,20 +45,43 @@
45 45   #if($docTitle == '')
46 46   #set($docTitle = "Untitled Document")
47 47   #end
48 - * [[${docTitle}>>${document.getExternalURL('view')}]]
49 - #set($hasUpdates = true)
51 + #if(!$hasUpdates)
52 + {{html clean="false" wiki="false"}}
53 + <h4>$topPage</h4>
54 + <ul>
55 + {{/html}}
56 + #set($hasUpdates = true)
57 + #end
58 + {{html clean="false" wiki="false"}}
59 + <li><a href="${document.getExternalURL('view')}" target="_blank">${docTitle}</a></li>
60 + {{/html}}
50 50   #end
51 51   #end
52 52   #end
53 53   #end
54 -
55 - #if(!$hasUpdates)
56 - 此版块近期没有更新。
65 + #if($hasUpdates)
66 + {{html clean="false" wiki="false"}}
67 + </ul>
68 + {{/html}}
57 57   #end
58 58  #end
71 +
72 +{{html clean="false" wiki="false"}}
73 +</div>
74 +{{/html}}
75 +
59 59  {{/velocity}}
60 60  
78 +)))
61 61  
80 +
81 +
82 +
83 +
84 +
85 +
86 +
87 +
62 62  (% class="col-xs-12 col-sm-6" %)
63 63  (((
64 64  === 相关链接 ===
... ... @@ -67,4 +67,3 @@
67 67  )))
68 68  
69 69  
70 -)))