Changes for page Hjem
Last modified by Normann P. Nielsen on 2026/11/20 07:06
From version 32.1
edited by Normann P. Nielsen
on 2026/11/18 18:09
on 2026/11/18 18:09
Change comment:
There is no comment for this version
To version 38.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,13 +4,39 @@ 4 4 5 5 [[image:Familie-color.png||data-xwiki-image-style-alignment="center"]] 6 6 7 - ==7 +{{container layoutStyle="columns"}}((( 8 8 9 - |=(((9 + 10 10 = Nyeste Blogs = 11 11 12 -{{blogpostlist published="yes" limit="10" paginated="no"/}} 13 -)))|=((( 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 + 36 +))) 37 + 38 +((( 39 + 14 14 = Nyeste sider = 15 15 16 16 {{velocity}} ... ... @@ -38,8 +38,8 @@ 38 38 {{/velocity}} 39 39 40 40 67 +))){{/container}} 41 41 42 -))) 43 43 44 44 = Besøg også disse interesseområder = 45 45