Changes for page Hjem
Last modified by Normann P. Nielsen on 2026/11/20 07:06
From version 15.2
edited by Normann P. Nielsen
on 2026/11/17 21:41
on 2026/11/17 21:41
Change comment:
Auto-saved during real-time collaboration
To version 33.1
edited by Normann P. Nielsen
on 2026/11/18 18:10
on 2026/11/18 18:10
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -8,12 +8,55 @@ 8 8 9 9 |=((( 10 10 = Nyeste Blogs = 11 +{{velocity}} 12 +#set ($hql = "select distinct doc.fullName from XWikiDocument doc, BaseObject obj where obj.name = doc.fullName and obj.className = 'Blog.BlogPostClass' and doc.hidden = false 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}} 11 11 12 -{{blogpostlist published="yes" limit="10" paginated="no"/}} 13 -)))|=((( 14 14 = Nyeste sider = 36 +{{velocity}} 37 +#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") 38 +#set ($query = $services.query.hql($hql)) 39 +#set ($discard = $query.setLimit(500)) 40 +#set ($pages = $query.execute()) 41 +#set ($count = 0) 42 +## 43 +(% class="recent-pages" %) 44 +|=Page|=Created 45 +#foreach ($pageName in $pages)## 46 +#if ($count < 10)## 47 +#set ($canView = $xwiki.hasAccessLevel('view', $context.user, $pageName))## 48 +#if ($canView)## 49 +#set ($tags = $services.tag.getTagsForDocument($pageName))## 50 +#if (!$tags.contains('noshow'))## 51 +#set ($page = $xwiki.getDocument($pageName))## 52 +|[[${page.title}>>${page.fullName}]]|$datetool.format('dd-MM-yyyy', $page.creationDate) 53 +#set ($count = $count + 1)## 54 +#end## 55 +#end## 56 +#end## 57 +#end## 58 +{{/velocity}} 15 15 16 -{{documents count="10" actions="false" columns="doc.name"/}} 17 17 18 18 19 19 )))