Changes for page Hjem
Last modified by Normann P. Nielsen on 2026/11/20 07:06
From version 25.1
edited by Normann P. Nielsen
on 2026/11/18 18:03
on 2026/11/18 18:03
Change comment:
There is no comment for this version
To version 18.1
edited by Normann P. Nielsen
on 2026/11/17 21:46
on 2026/11/17 21:46
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -27,33 +27,18 @@ 27 27 ") 28 28 29 29 #set ($query = $services.query.hql($hql)) 30 -#set ($discard = $query.setLimit( 500))30 +#set ($discard = $query.setLimit(10)) 31 31 #set ($pages = $query.execute()) 32 -#set ($count = 0) 33 33 34 34 (% class="recent-pages" %) 35 - 34 +|=Page|=Created 36 36 #foreach ($pageName in $pages) 37 - #if ($count < 10) 38 - #set ($page = $xwiki.getDocument($pageName)) 39 - 40 - ## Check permissions for the current user 41 - #set ($canView = $xwiki.hasAccessLevel('view', $context.user, $pageName)) 42 - 43 - #if ($canView) 44 - #set ($tags = $services.tag.getTagsForDocument($pageName)) 45 - 46 - #if (!$tags.contains('noshow')) 47 -${page.title}>>${page.fullName}]]|$datetool.format('dd-MM-yyyy', $page.creationDate) 48 - #set ($count = $count + 1) 49 - #end 50 - #end 36 + #set ($page = $xwiki.getDocument($pageName)) 37 + #if ($page.hasAccessLevel('view')) 38 +|[[${page.title}>>${page.fullName}]]|$datetool.format('dd-MM-yyyy', $page.creationDate) 51 51 #end 52 52 #end 53 - 54 54 {{/velocity}} 55 - 56 - 57 57 58 58 ))) 59 59