Wiki source code of Notifications

Last modified by superadmin on 2026/11/28 04:30

Show last authors
1 {{box cssClass="floatinginfobox"}}
2 {{toc start="2" /}}
3 {{/box}}
4
5 **Notifications Macro** provides information about recent activities done by the users. [[Learn more>>https://extensions.xwiki.org/xwiki/bin/view/Extension/Notifications%20Application/#HNotificationsMacro]]
6
7 == Wiki Activity ==
8
9 {{example}}
10 {{velocity}}
11 {{notifications count="5" useUserPreferences="false" displayOwnEvents="true" wikis="$services.wiki.currentWikiId"/}}
12 {{/velocity}}
13 {{/example}}
14
15 == Current User Activity ==
16
17 {{example}}
18 {{velocity}}
19 {{notifications count="5" useUserPreferences="false" displayOwnEvents="true" users="$xcontext.user"/}}
20 {{/velocity}}
21 {{/example}}

#panelheader($msg.get("xe.panels.quicklinks"))

  • [L3D Calendar>L3D Calendar.WebHome]
  • [$msg.get("xe.panels.quicklinks.dashboard")>Main.WebHome]
  • [$msg.get("xe.panels.quicklinks.index")>Main.AllDocs]
  • [$msg.get("xe.panels.quicklinks.blog")>Blog.WebHome]
  • [$msg.get("xe.panels.quicklinks.sandbox")>Sandbox.WebHome]
    #if ($xwiki.hasAdminRights())
    <p style="font-size:0.75em;padding-left:8px;"><a href="$xwiki.getDocument("Panels.QuickLinks").getURL("inline")">$msg.get("xe.panels.edit")</a></p>
    #end
    #panelfooter()

#set($recentDocs = $xwiki.searchDocuments("where 1=1 and doc.author='$context.user' order by doc.date desc", 5, 0))
#if($recentDocs.size() > 0 || $showEmptyPanels)
#panelheader($msg.get("xe.panels.modifications.my"))
#set($first = true)
#foreach($docname in $recentDocs)
#set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
#if($first == true)
#set($first = false)
#else
<span class="pitemseparator"> | </span>
#end
<span class="panelitem"><a href="$rdoc.getURL("view")">$rdoc.displayTitle</a></span>
#end
#panelfooter()
#end