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