Changes for page Hjem

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

From version 34.1
edited by Normann P. Nielsen
on 2026/11/18 18:45
Change comment: There is no comment for this version
To version 15.2
edited by Normann P. Nielsen
on 2026/11/17 21:41
Change comment: Auto-saved during real-time collaboration

Summary

Details

Page properties
Content
... ... @@ -9,57 +9,12 @@
9 9  |=(((
10 10  = Nyeste Blogs =
11 11  
12 -{{velocity}}
13 -#set ($hql = "select doc.fullName from XWikiDocument doc where doc.hidden = false and exists (select obj.id from BaseObject obj where obj.name = doc.fullName and obj.className = 'Blog.BlogPostClass') order by doc.creationDate desc")
14 -#set ($query = $services.query.hql($hql))
15 -#set ($discard = $query.setLimit(500))
16 -#set ($pages = $query.execute())
17 -#set ($count = 0)
18 -##
19 -(% class="recent-blogs" %)
20 -|=Blog post|=Created
21 -#foreach ($pageName in $pages)##
22 -#if ($count < 10)##
23 -#set ($canView = $xwiki.hasAccessLevel('view', $context.user, $pageName))##
24 -#if ($canView)##
25 -#set ($tags = $services.tag.getTagsForDocument($pageName))##
26 -#if (!$tags.contains('noshow'))##
27 -#set ($page = $xwiki.getDocument($pageName))##
28 -|[[${page.title}>>${page.fullName}]]|$datetool.format('dd-MM-yyyy', $page.creationDate)
29 -#set ($count = $count + 1)##
30 -#end##
31 -#end##
32 -#end##
33 -#end##
34 -{{/velocity}}
35 -
12 +{{blogpostlist published="yes" limit="10" paginated="no"/}}
13 +)))|=(((
36 36  = Nyeste sider =
37 37  
38 -{{velocity}}
39 -#set ($hql = "select doc.fullName from XWikiDocument doc where doc.hidden = false and doc.fullName not in (select obj.name from BaseObject obj where obj.className = 'Blog.BlogPostClass') order by doc.creationDate desc")
40 -#set ($query = $services.query.hql($hql))
41 -#set ($discard = $query.setLimit(500))
42 -#set ($pages = $query.execute())
43 -#set ($count = 0)
44 -##
45 -(% class="recent-pages" %)
46 -|=Page|=Created
47 -#foreach ($pageName in $pages)##
48 -#if ($count < 10)##
49 -#set ($canView = $xwiki.hasAccessLevel('view', $context.user, $pageName))##
50 -#if ($canView)##
51 -#set ($tags = $services.tag.getTagsForDocument($pageName))##
52 -#if (!$tags.contains('noshow'))##
53 -#set ($page = $xwiki.getDocument($pageName))##
54 -|[[${page.title}>>${page.fullName}]]|$datetool.format('dd-MM-yyyy', $page.creationDate)
55 -#set ($count = $count + 1)##
56 -#end##
57 -#end##
58 -#end##
59 -#end##
60 -{{/velocity}}
16 +{{documents count="10" actions="false" columns="doc.name"/}}
61 61  
62 -
63 63  
64 64  )))
65 65