[xwiki-users] Hide (don't show) some macros in WYSIWYG insert macro menu
Hi XWiki Team, I would like to hide some macros from the user, in the list presented on the WYSIWYG editor menu "Insert Macro". How can I do that? The matter is only hiding some of them from the user, to prevent him/her to select it to use on the page creation. Some of them are not familiar to my users, and I would like to "disable" the possibility of use. How can I do that? And also, is it possible to show those hidden ones only to the admin or the admin group, or a specific group? I'm using XE 3.0 Regards, Ramon Gomes Brandão
Hi Ramon, The WYSIWYG editor takes the list of macros from the MacroManager and the MacroCategoryManager server side components. The editor doesn't filter the list of macros and AFAIK neither the MacroManager and MacroCategoryManager, so the only solution is to provide a custom implementation for these components that filter the macros based on your constraints. Here you can find the default implementations https://github.com/xwiki/xwiki-rendering/tree/master/xwiki-rendering-transfo... Hope this helps, Marius On 04/07/2011 12:20 AM, Ramon Gomes Brandão - SERINT wrote:
Hi XWiki Team,
I would like to hide some macros from the user, in the list presented on the WYSIWYG editor menu "Insert Macro". How can I do that?
The matter is only hiding some of them from the user, to prevent him/her to select it to use on the page creation. Some of them are not familiar to my users, and I would like to "disable" the possibility of use. How can I do that?
And also, is it possible to show those hidden ones only to the admin or the admin group, or a specific group?
I'm using XE 3.0
Regards,
Ramon Gomes Brandão
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Maybe putting theses macro is a scary macro category like "System" would be enough for user to not use them in your case ? On Thu, Apr 7, 2011 at 10:05, Marius Dumitru Florea <[email protected]> wrote:
Hi Ramon,
The WYSIWYG editor takes the list of macros from the MacroManager and the MacroCategoryManager server side components. The editor doesn't filter the list of macros and AFAIK neither the MacroManager and MacroCategoryManager, so the only solution is to provide a custom implementation for these components that filter the macros based on your constraints. Here you can find the default implementations https://github.com/xwiki/xwiki-rendering/tree/master/xwiki-rendering-transfo...
Hope this helps, Marius
On 04/07/2011 12:20 AM, Ramon Gomes Brandão - SERINT wrote:
Hi XWiki Team,
I would like to hide some macros from the user, in the list presented on the WYSIWYG editor menu "Insert Macro". How can I do that?
The matter is only hiding some of them from the user, to prevent him/her to select it to use on the page creation. Some of them are not familiar to my users, and I would like to "disable" the possibility of use. How can I do that?
And also, is it possible to show those hidden ones only to the admin or the admin group, or a specific group?
I'm using XE 3.0
Regards,
Ramon Gomes Brandão
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
participants (3)
-
Marius Dumitru Florea -
Ramon Gomes Brandão - SERINT -
Thomas Mortagne