Hi everyone,
I’m hosting a XWiki for two User Group. Every Group has it’s own area in the Xwiki. I managed that every group can only see their space.
Now the problem is that after every login every user gets directed to the Main.WebHome page.
I’d like to redirect them to the main page of their space when they log into the wiki.
I tried this velocity script on the Main Page:
#if($xwiki.getUser().isUserInGroup('XWiki.GroupIT'))
{{display reference="IW.WebHome"/}}
#elseif($xwiki.getUser().isUserInGroup('XWiki.GroupFI'))
{{display reference="FIW.WebHome"/}}
#else{{display reference="Main.WebHome"/}}
#end
For example, the URL for group IT ends with:
/xwiki/bin/view/IW/
As a test I only used
{{display reference=“IW.WebHome”/}}
in a velocity macro. And the right page was shown, but the differentiation betwen user groups is not working.
Is this not possible at all or am I simply doing it wrong?
I’d appreciate every kind of input.Thank you very much.