Jonas Almfeldt wrote:
> Another question:
> 
> I have access to my wiki restricted to registered users. Unauthorised
> visitors should however be redirected (?) automatically to a page in a
> public space instead of just being redirected to the log in page. How can
> that be achieved?

This is not currently implemented (feel free to open a feature request 
on jira.xwiki.org if you want it), but there's a workaround possible.

- in WEB-INF/xwiki.cfg, add this: xwiki.hidelogin=true
- in templates/accessdenied replace the "notallowed" line with something 
like:

#if($context.user == 'XWiki.XWikiGuest')
   $response.sendRedirect($xwiki.getURL('Your.PublicPage'))
#else
   #xwikimessageboxstart($msg.get("error") $msg.get("notallowed"))
#end

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to