Changes for page Hjem
Last modified by Normann P. Nielsen on 2026/11/20 07:06
From version 17.1
edited by Normann P. Nielsen
on 2026/11/17 21:45
on 2026/11/17 21:45
Change comment:
There is no comment for this version
To version 37.1
edited by Normann P. Nielsen
on 2026/11/18 18:49
on 2026/11/18 18:49
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,26 +4,66 @@ 4 4 5 5 [[image:Familie-color.png||data-xwiki-image-style-alignment="center"]] 6 6 7 -= = 8 - 9 -|=((( 7 +{{container layoutStyle="columns"}} 8 +((( 10 10 = Nyeste Blogs = 11 11 12 -{{blogpostlist published="yes" limit="10" paginated="no"/}} 13 -)))|=((( 11 +{{velocity}} 12 +#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") 13 +#set ($query = $services.query.hql($hql)) 14 +#set ($discard = $query.setLimit(500)) 15 +#set ($pages = $query.execute()) 16 +#set ($count = 0) 17 +## 18 +(% class="recent-blogs" %) 19 +|=Blog post|=Created 20 +#foreach ($pageName in $pages)## 21 +#if ($count < 10)## 22 +#set ($canView = $xwiki.hasAccessLevel('view', $context.user, $pageName))## 23 +#if ($canView)## 24 +#set ($tags = $services.tag.getTagsForDocument($pageName))## 25 +#if (!$tags.contains('noshow'))## 26 +#set ($page = $xwiki.getDocument($pageName))## 27 +|[[${page.title}>>${page.fullName}]]|$datetool.format('dd-MM-yyyy', $page.creationDate) 28 +#set ($count = $count + 1)## 29 +#end## 30 +#end## 31 +#end## 32 +#end## 33 +{{/velocity}} 34 + 35 +))) 36 + 37 +((( 14 14 = Nyeste sider = 15 15 16 -{{liveData 17 - id="recentPages" 18 - source="liveTable" 19 - sourceParameters="translationPrefix=platform.index." 20 - properties="doc.title,doc.location,doc.creationDate" 21 - sort="doc.creationDate:desc" 22 - limit="10" 23 -/}} 40 +{{velocity}} 41 +#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") 42 +#set ($query = $services.query.hql($hql)) 43 +#set ($discard = $query.setLimit(500)) 44 +#set ($pages = $query.execute()) 45 +#set ($count = 0) 46 +## 47 +(% class="recent-pages" %) 48 +|=Page|=Created 49 +#foreach ($pageName in $pages)## 50 +#if ($count < 10)## 51 +#set ($canView = $xwiki.hasAccessLevel('view', $context.user, $pageName))## 52 +#if ($canView)## 53 +#set ($tags = $services.tag.getTagsForDocument($pageName))## 54 +#if (!$tags.contains('noshow'))## 55 +#set ($page = $xwiki.getDocument($pageName))## 56 +|[[${page.title}>>${page.fullName}]]|$datetool.format('dd-MM-yyyy', $page.creationDate) 57 +#set ($count = $count + 1)## 58 +#end## 59 +#end## 60 +#end## 61 +#end## 62 +{{/velocity}} 24 24 25 - 26 26 ))) 65 +{{/container}} 66 + 27 27 28 28 = Besøg også disse interesseområder = 29 29