For preventing the User Index to be proposed, it is probably simpler to
just protect the Main.UserDirectory page from being seen by anyone else
than admins, and the drawer option will be removed to those that does not
have access. So, no need to tune this UIX, since it will just be
inaccessible.
On Thu, May 19, 2016 at 11:03 AM, Vincent Massol <vincent(a)massol.net> wrote:
I think we should add a short tutorial on how to
customize the drawer on
xwiki.org.
Any taker? :)
Thanks
-Vincent
On 19 May 2016, at 10:55, Guillaume Delhumeau
<
guillaume.delhumeau(a)xwiki.com> wrote:
Hello.
For 1, you need to modify XWiki.UserIndexUIX to add a check on the
administrator right (you could add $isAdmin and that's all).
See:
https://github.com/xwiki/xwiki-platform/blob/4f7e47962ad5867d85f16c2c0452fb…
For 2, you need to implement some UI extensions, see:
http://platform.xwiki.org/xwiki/bin/view/ExtensionPoint/DrawerItem
Documentation:
http://extensions.xwiki.org/xwiki/bin/view/Extension/UIExtension+Module
Thanks,
2016-05-19 5:33 GMT+02:00 superuser <superuser(a)wikinote.org>rg>:
> I tried to play around with drawer.vm but only in vain. I need to:
> 1] display 'User Index' from drawer only to administrator (not possible
by
> 'administer page/parent' option)
> 2] add other applications e.g. 'Invitation', 'sandbox' to drawer
>
>
>
> --
> View this message in context:
>
http://xwiki.475771.n2.nabble.com/Display-User-Index-in-drawer-only-to-admi…
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Denis Gervalle
SOFTEC sa - CEO