Changes for page ActivityMacro

Last modified by Sebastian Marsching on 2023/08/13 16:14

From version 2.1
edited by Sebastian Marsching
on 2022/08/02 11:45
Change comment: Migrated property [defaultCategories] from class [XWiki.WikiMacroClass]
To version 5.1
edited by Sebastian Marsching
on 2023/08/13 16:14
Change comment: Migrated property [type] from class [XWiki.WikiMacroParameterClass]

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -1,7 +1,16 @@
1 1  {{velocity}}
2 2  #set ($wikis = '')
3 -#if ($services.wiki.currentWikiId != $services.wiki.mainWikiId)
3 +#if ("$!xcontext.macro.params.wikis" != '')
4 + #set ($wikis = $xcontext.macro.params.wikis)
5 +#elseif ($services.wiki.currentWikiId != $services.wiki.mainWikiId)
4 4   #set ($wikis = $services.wiki.currentWikiId)
5 5  #end
6 -{{notifications useUserPreferences="false" displayOwnEvents="true" count="$xcontext.macro.params.entries" #if("$!xcontext.macro.params.wikis" != '')wikis="$xcontext.macro.params.wikis"#{else}wikis="$wikis"#end #if("$!xcontext.macro.params.spaces" != '')spaces="$xcontext.macro.params.spaces"#end #if("$!xcontext.macro.params.authors" != '')users="$xcontext.macro.params.authors"#end #if("$!xcontext.macro.params.tags" != '')tags="$xcontext.macro.params.tags"#end #if("$!xcontext.macro.params.minor" != '')displayMinorEvents="$xcontext.macro.params.minor"#end #if("$!xcontext.macro.params.rss" != '')displayRSSLink="$xcontext.macro.params.rss"#end /}}
8 +{{notifications useUserPreferences="false" displayOwnEvents="true"
9 + count="$services.rendering.escape($xcontext.macro.params.entries, 'xwiki/2.1')"
10 + wikis="$services.rendering.escape($wikis, 'xwiki/2.1')"
11 + #if("$!xcontext.macro.params.spaces" != '')spaces="$services.rendering.escape($xcontext.macro.params.spaces, 'xwiki/2.1')"#end
12 + #if("$!xcontext.macro.params.authors" != '')users="$services.rendering.escape($xcontext.macro.params.authors, 'xwiki/2.1')"#end
13 + #if("$!xcontext.macro.params.tags" != '')tags="$services.rendering.escape($xcontext.macro.params.tags, 'xwiki/2.1')"#end
14 + #if("$!xcontext.macro.params.minor" != '')displayMinorEvents="$services.rendering.escape($xcontext.macro.params.minor, 'xwiki/2.1')"#end
15 + #if("$!xcontext.macro.params.rss" != '')displayRSSLink="$services.rendering.escape($xcontext.macro.params.rss, 'xwiki/2.1')"#end /}}
7 7  {{/velocity}}
Default category
... ... @@ -1,1 +1,0 @@
1 -Notifications
Cached
... ... @@ -1,0 +1,1 @@
1 +No
Asynchronous rendering
... ... @@ -1,0 +1,1 @@
1 +No
Default categories
... ... @@ -1,0 +1,1 @@
1 +Notifications