Expand my Community achievements bar.

SOLVED

How to remove "Groups" and "Rollout" button from component?

Avatar

Level 1

Hi Guys,

issue.PNG

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.



Arun Patidar

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

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.



Arun Patidar

Avatar

Level 1

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.

Avatar

Community Advisor

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;

}



Arun Patidar

Avatar

Level 1

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).