Wiki source code of News
Last modified by Vincent Massol on 2024/10/21
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
65.1 | 1 | Find below all the recent news from the site blog and from the list of pages that have been changed recently. You can also check [[planned community Events>>Main.Events.WebHome]]. |
![]() |
10.1 | 2 | |
![]() |
54.1 | 3 | {{container layoutStyle="columns"}} |
4 | ((( | ||
![]() |
56.1 | 5 | = Blog {{velocity}}[[image:icon:feed>>path:$xwiki.getURL("Blog.GlobalBlogRss", "view", "xpage=plain")]]{{/velocity}} = |
![]() |
62.4 | 6 | {{velocity}} |
![]() |
67.3 | 7 | {{cache id="news-blog8-${request.page}-${request.ipp}"}} |
![]() |
61.1 | 8 | (% style="overflow:hidden" %)((( |
![]() |
67.3 | 9 | {{blogpostlist blog="Blog.WebHome" layout="full" published="yes" limit="5" /}} |
![]() |
61.1 | 10 | ))) |
![]() |
59.3 | 11 | {{/cache}} |
![]() |
62.4 | 12 | {{/velocity}} |
![]() |
54.1 | 13 | ))) |
14 | ((( | ||
![]() |
59.4 | 15 | {{velocity}} |
![]() |
67.7 | 16 | #set ($rssURL = $services.rest.url($doc.documentReference)) |
17 | #set ($rssURL = "${rssURL.substring(0, $rssURL.indexOf('/rest'))}/rest/notifications/rss") | ||
18 | #set ($rssURL = "${rssURL}?userId=$!escapetool.url($services.model.serialize($xcontext.userReference, 'default'))") | ||
19 | #set ($rssURL = "${rssURL}&count=50&useUserPreferences=false&displayOwnEvents=true&wikis=xwiki,extensions,dev,contrib,commons,rendering,snippets") | ||
20 | {{/velocity}} | ||
21 | = Activity {{velocity}}[[image:icon:feed>>path:$rssURL)]]{{/velocity}} = | ||
22 | {{velocity}} | ||
![]() |
59.4 | 23 | ## We need this since the cache macro will prevent JS and CSS to be applied at each load of the page |
24 | $xwiki.jsx.use("Main.Activity")## | ||
25 | $xwiki.ssx.use("Main.Activity")## | ||
26 | {{/velocity}} | ||
![]() |
67.5 | 27 | |
![]() |
67.4 | 28 | {{activity entries="50" wikis="xwiki,extensions,dev,contrib,commons,rendering,snippets"/}} |
![]() |
54.1 | 29 | ))) |
30 | {{/container}} |