Changes for page Hjem
Last modified by Normann P. Nielsen on 2026/11/20 07:06
From version 19.1
edited by Normann P. Nielsen
on 2026/11/17 21:47
on 2026/11/17 21:47
Change comment:
There is no comment for this version
To 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
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,58 +4,67 @@ 4 4 5 5 [[image:Familie-color.png||data-xwiki-image-style-alignment="center"]] 6 6 7 -= = 8 8 9 -|=((( 8 +{{container layoutStyle="columns"}} 9 +((( 10 10 = Nyeste Blogs = 11 11 12 -{{blogpostlist published="yes" limit="10" paginated="no"/}} 13 -)))|=((( 14 -= Nyeste sider = 15 - 16 16 {{velocity}} 17 -#set ($hql = " 18 - select doc.fullName 19 - from XWikiDocument doc 20 - where doc.hidden = false 21 - and doc.fullName not in ( 22 - select obj.name 23 - from BaseObject obj 24 - where obj.className = 'Blog.BlogPostClass' 25 - ) 26 - order by doc.creationDate desc 27 -") 28 - 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") 29 29 #set ($query = $services.query.hql($hql)) 30 -#set ($discard = $query.setLimit( 10))15 +#set ($discard = $query.setLimit(500)) 31 31 #set ($pages = $query.execute()) 32 - 33 -(% class="recent-pages" %) 17 +#set ($count = 0) 18 +## 19 +(% class="recent-blogs" %) 20 +|=Blog post|=Created 34 34 #foreach ($pageName in $pages) 35 - #set ($page = $xwiki.getDocument($pageName)) 36 - #if ($page.hasAccessLevel('view')) 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)) 37 37 |[[${page.title}>>${page.fullName}]]|$datetool.format('dd-MM-yyyy', $page.creationDate) 38 - #end29 +#set ($count = $count + 1) 39 39 #end 31 +#end 32 +#end 33 +#end 40 40 {{/velocity}} 35 +))) 41 41 37 +((( 38 += Nyeste sider = 39 + 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 +## 42 42 (% class="recent-pages" %) 43 43 |=Page|=Created 44 -|[[TestDiagram>>Main.test-home.a-draw-io-diagram.testdiagram.WebHome]]|15-11-2026 45 -|[[Architecture.drawio>>Main.atlassian.atlassian-jira.jira-as-cmdb.architecture-drawio.WebHome]]|15-11-2026 46 -|[[Workflow.drawio>>Main.atlassian.atlassian-jira.jira-as-cmdb.workflow-drawio.WebHome]]|15-11-2026 47 -|[[Lifecycle.drawio>>Main.atlassian.atlassian-jira.jira-as-cmdb.lifecycle-drawio.WebHome]]|15-11-2026 48 -|[[Flow.drawio>>Main.atlassian.atlassian-jira.jira-as-cmdb.flow-drawio.WebHome]]|15-11-2026 49 -|[[Arkitektur.drawio>>Main.atlassian.atlassian-jira.jira-as-cmdb.arkitektur-drawio.WebHome]]|15-11-2026 50 -|[[Screens.drawio>>Main.atlassian.atlassian-jira.implementing-free-templates-in-jira.screens-drawio.WebHome]]|15-11-2026 51 -|[[SimpleWorkflow.drawio>>Main.atlassian.atlassian-jira.implementing-free-templates-in-jira.simpleworkflow-drawio.WebHome]]|15-11-2026 52 -|[[HumanFactor2.drawio>>Main.atlassian.atlassian-jira.creating-workflows-in-jira-from-a-practical-perspective.humanfactor2-drawio.WebHome]]|15-11-2026 53 -|[[HumanFactor1.drawio>>Main.atlassian.atlassian-jira.creating-workflows-in-jira-from-a-practical-perspective.humanfactor1-drawio.WebHome]]|15-11-2026 54 - 55 - 56 - 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}} 57 57 ))) 64 +{{/container}} 58 58 66 + 67 + 59 59 = Besøg også disse interesseområder = 60 60 61 61 |=[[~[~[image:deathstar-50x50.png~|~|alt="FAmiliebilleder" data-xwiki-image-style-alignment="center"~]~]>>doc:.familiebilleder.WebHome]]((( ... ... @@ -97,6 +97,6 @@ 97 97 )))|[[~[~[image:deathstar-50x50.png~|~|alt="Familiebilleder" data-xwiki-image-style-alignment="center"~]~]>>doc:.familiebilleder.WebHome]]((( 98 98 (% style="text-align: center;" %) 99 99 Atlassian 100 -))) 101 101 102 102 111 +)))