The image doesn't show too much.. but from what I can see in it you're missing the wiki name after the date. Here's what I get:
Sandbox.Foo, 2014-04-08 18:15:17.0, xwiki, Main.Sheet, 2014-04-08 16:56:54.0, xwiki, Sandbox.WebHome, 2014-04-08 13:26:14.0, xwiki, Sandbox.123, 2014-04-07 17:10:43.0, xwiki, ... so this #set ($pageWiki = $page.get(2)) probably fails. You could also display $page.size() in the "foreach" from the snippet I gave you. #displayActivity() is in Main.Activity, as I said, but you need to edit in object mode and look at the WikiMacroClass object, the "Macro code" property. Hope this helps, Marius On Tue, Apr 8, 2014 at 6:07 PM, tduchateau <[email protected]> wrote: > Hi Marius, > > Thanks for your help. > I just added your script in a new velocity widget, on the WebHome page and > it works well. > > <http://xwiki.475771.n2.nabble.com/file/n7590032/ScreenShot060.png> > I tried to add your script > > > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/Activity-stream-app-failed-to-execute-velocity-macro-tp7590002p7590032.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
