[xwiki-users] Activity macro issues
Hi everybody! I have strange situation with activity macro (XWiki 3.2). If I add Activity macro for user personal dashboard - I can see all personal messages & events, but If I put same macro (inside dashboard or not - doesn't matter) in simple page - I cannot see mesages for this users ... For reproducing situation: 1) create some "test" user 2) this user made some changes for page Sandbox.TestPage3 3) from another user (admin) sent some message personaly for "test" user 4) go to personal dashboard with activity gadget with string: {{activity spaces="Sandbox" authors="test"/}} - you can see page modification made by "test" and also message from admin. 5) Add same activity macro {{activity spaces="Sandbox" authors="test"/}} in another page - see result: no message, no info about page modification ... Why? What's the difference? My final goal - on some page (not personal dashboard) list all activity (personal messages stream too) of fixed user and fixed space. Unfortunatly, result what I want give me only personal dashboard of this user (on page /xwiki/bin/view/XWiki/test), and I cannot reproduce it on another pages ... Maybe I doing something wrong? Please give me some advice. -- Best Regards Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/Activity-macro-issues-tp6895656p6895656.ht... Sent from the XWiki- Users mailing list archive at Nabble.com.
I started to understand ... Problem exists, because for showing messages and for showing other events you should write filter different: {{activity authors="xwiki:XWiki.testtest"/}} - show only messages {{activity authors="XWiki.testtest"/}} - show only events Why? Is it mistake? What should I do if I need activity for one space and for one user (including all messages of this user)? -- Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/Activity-macro-issues-tp6895656p6895844.ht... Sent from the XWiki- Users mailing list archive at Nabble.com.
On 10/15/2011 11:24 AM, Eugen Colesnicov wrote:
I started to understand ...
Problem exists, because for showing messages and for showing other events you should write filter different: {{activity authors="xwiki:XWiki.testtest"/}} - show only messages {{activity authors="XWiki.testtest"/}} - show only events
Why? Is it mistake? What should I do if I need activity for one space and for one user (including all messages of this user)?
It is a bug, caused by the fact that the older wiki activity events don't prefix the username, which is very bad in multi-wiki environments because it makes it impossible to differentiate between different users with the same username coming from different virtual wikis. For a quick fix at the moment, put both values in the authors parameter. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu Dumitriu-2 wrote:
... For a quick fix at the moment, put both values in the authors parameter.
Thanks Sergiu! Unfortunatly, your advice is not enought for me, because of I need activity with 2 filters: per space & per user (including all messages of this user). If I write {{activity authors="xwiki:XWiki.test,XWiki.test"/}} - I can see events & messages of user "test", but for ALL spaces ... I need someting like this {{activity authors="xwiki:XWiki.testtest,XWiki.testtest" spaces="Sandbox"/}} - unfortunatly, no messages ... This is one more issue - if I use filter per space - macros doesn't show any messages. -- Thanks Eugen -- View this message in context: http://xwiki.475771.n2.nabble.com/Activity-macro-issues-tp6895656p6896140.ht... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
Eugen Colesnicov -
Sergiu Dumitriu