Changes for page Hjem

Last modified by Normann P. Nielsen on 2026/11/20 07:06

From version 19.1
edited by Normann P. Nielsen
on 2026/11/17 21:47
Change comment: There is no comment for this version
To version 20.1
edited by Normann P. Nielsen
on 2026/11/17 21:48
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -27,14 +27,21 @@
27 27  ")
28 28  
29 29  #set ($query = $services.query.hql($hql))
30 -#set ($discard = $query.setLimit(10))
30 +#set ($discard = $query.setLimit(100))
31 31  #set ($pages = $query.execute())
32 +#set ($count = 0)
32 32  
33 33  (% class="recent-pages" %)
35 +|=Page|=Created
34 34  #foreach ($pageName in $pages)
35 - #set ($page = $xwiki.getDocument($pageName))
36 - #if ($page.hasAccessLevel('view'))
37 + #if ($count < 10)
38 + #set ($page = $xwiki.getDocument($pageName))
39 + #set ($tags = $services.tag.getTagsForDocument($pageName))
40 +
41 + #if ($page.hasAccessLevel('view') && !$tags.contains('noshow'))
37 37  |[[${page.title}>>${page.fullName}]]|$datetool.format('dd-MM-yyyy', $page.creationDate)
43 + #set ($count = $count + 1)
44 + #end
38 38   #end
39 39  #end
40 40  {{/velocity}}
... ... @@ -52,7 +52,6 @@
52 52  |[[HumanFactor2.drawio>>Main.atlassian.atlassian-jira.creating-workflows-in-jira-from-a-practical-perspective.humanfactor2-drawio.WebHome]]|15-11-2026
53 53  |[[HumanFactor1.drawio>>Main.atlassian.atlassian-jira.creating-workflows-in-jira-from-a-practical-perspective.humanfactor1-drawio.WebHome]]|15-11-2026
54 54  
55 -
56 56  
57 57  )))
58 58