Changes for page Hjem
Last modified by Normann P. Nielsen on 2026/11/20 07:06
From version 35.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 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
-
... ... @@ -7,37 +7,10 @@ 7 7 = = 8 8 9 9 |=((( 10 -{{container layoutStyle="columns"}} 11 -((( 12 12 = Nyeste Blogs = 13 13 14 -{{velocity}} 15 -#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") 16 -#set ($query = $services.query.hql($hql)) 17 -#set ($discard = $query.setLimit(500)) 18 -#set ($pages = $query.execute()) 19 -#set ($count = 0) 20 -## 21 -(% class="recent-blogs" %) 22 -|=Blog post|=Created 23 -#foreach ($pageName in $pages)## 24 -#if ($count < 10)## 25 -#set ($canView = $xwiki.hasAccessLevel('view', $context.user, $pageName))## 26 -#if ($canView)## 27 -#set ($tags = $services.tag.getTagsForDocument($pageName))## 28 -#if (!$tags.contains('noshow'))## 29 -#set ($page = $xwiki.getDocument($pageName))## 30 -|[[${page.title}>>${page.fullName}]]|$datetool.format('dd-MM-yyyy', $page.creationDate) 31 -#set ($count = $count + 1)## 32 -#end## 33 -#end## 34 -#end## 35 -#end## 36 -{{/velocity}} 37 - 38 -))) 39 - 40 -((( 12 +{{blogpostlist published="yes" limit="10" paginated="no"/}} 13 +)))|=((( 41 41 = Nyeste sider = 42 42 43 43 {{velocity}} ... ... @@ -64,8 +64,7 @@ 64 64 #end## 65 65 {{/velocity}} 66 66 67 -))) 68 -{{/container}} 40 + 69 69 70 70 ))) 71 71