Changes for page News
Last modified by Vincent Massol on 2024/10/21
From version 67.6
edited by Vincent Massol
on 2022/08/05
on 2022/08/05
Change comment:
There is no comment for this version
To version 67.7
edited by Vincent Massol
on 2024/10/21
on 2024/10/21
Change comment:
Replace WebRss which was dropped in favor or the RSS endpoint
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -12,8 +12,14 @@ 12 12 {{/velocity}} 13 13 ))) 14 14 ((( 15 -= Activity {{velocity}}[[image:icon:feed>>path:$xwiki.getURL("Main.WebRss", "view", "xpage=plain")]]{{/velocity}} = 16 16 {{velocity}} 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}} 17 17 ## We need this since the cache macro will prevent JS and CSS to be applied at each load of the page 18 18 $xwiki.jsx.use("Main.Activity")## 19 19 $xwiki.ssx.use("Main.Activity")##