Hi Guys,
Does anybody know how to get rid of the "Group" and "rollout" button in the editbar of a component?
Is it possible to remove this button for a group of users?
Regards,
Shashank
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
This options are rendering from js at /libs/cq/gui/components/authoring/editors/clientlibs/sites/page
you can hide this options by overlaying JS and user related rendering also implemented by checking user or group by making ajax cal to servlet which could returns true/false based on user privileges.
Views
Replies
Total Likes
Hi,
This options are rendering from js at /libs/cq/gui/components/authoring/editors/clientlibs/sites/page
you can hide this options by overlaying JS and user related rendering also implemented by checking user or group by making ajax cal to servlet which could returns true/false based on user privileges.
Views
Replies
Total Likes
Hi Arun Patidar,
Thanks for your response.
I found out that after commenting out (/libs/cq/gui/components/authoring/editors/clientlibs/core/js/edit/ToolbarActions/edit.ToolbarActions.GROUP.js) the mentioned js in libs the group option was disabled however after overlaying my instance became unresponsive. Also i was not able to find the js for disabling rollout option.
Views
Replies
Total Likes
Hi,
The easiest way is to hide option using CSS,
you can create a Clientlibs with category "cq.authoring.editor.core"
and add below css
e.g.
#EditableToolbar > button[title="Group"], #EditableToolbar > button[title="Rollout"]{
display:none;
}
Views
Replies
Total Likes
Hi Arun,
Thanks for the solution , i was able to hide the options by overlaying (/libs/cq/gui/components/authoring/editors/clientlibs/core/js/edit/edit.Toolbar.js).
Views
Replies
Total Likes