Changes for page Hjem
Last modified by Normann P. Nielsen on 2026/11/20 07:06
From version 40.1
edited by Normann P. Nielsen
on 2026/11/18 18:50
on 2026/11/18 18:50
Change comment:
There is no comment for this version
To 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
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,37 +4,13 @@ 4 4 5 5 [[image:Familie-color.png||data-xwiki-image-style-alignment="center"]] 6 6 7 += = 7 7 8 -{{container layoutStyle="columns"}} 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 -))) 36 - 37 -((( 12 +{{blogpostlist published="yes" limit="10" paginated="no"/}} 13 +)))|=((( 38 38 = Nyeste sider = 39 39 40 40 {{velocity}} ... ... @@ -43,27 +43,27 @@ 43 43 #set ($discard = $query.setLimit(500)) 44 44 #set ($pages = $query.execute()) 45 45 #set ($count = 0) 46 -## 22 +## 47 47 (% class="recent-pages" %) 48 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)) 25 +#foreach ($pageName in $pages)## 26 +#if ($count < 10)## 27 +#set ($canView = $xwiki.hasAccessLevel('view', $context.user, $pageName))## 28 +#if ($canView)## 29 +#set ($tags = $services.tag.getTagsForDocument($pageName))## 30 +#if (!$tags.contains('noshow'))## 31 +#set ($page = $xwiki.getDocument($pageName))## 56 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 33 +#set ($count = $count + 1)## 34 +#end## 35 +#end## 36 +#end## 37 +#end## 62 62 {{/velocity}} 63 -))) 64 -{{/container}} 65 65 40 + 66 66 42 +))) 67 67 68 68 = Besøg også disse interesseområder = 69 69 ... ... @@ -106,6 +106,6 @@ 106 106 )))|[[~[~[image:deathstar-50x50.png~|~|alt="Familiebilleder" data-xwiki-image-style-alignment="center"~]~]>>doc:.familiebilleder.WebHome]]((( 107 107 (% style="text-align: center;" %) 108 108 Atlassian 85 +))) 109 109 110 110 111 -)))