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

shashanks459532

19-12-2018

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

Accepted Solutions (1)

Accepted Solutions (1)

Arun_Patidar

MVP

19-12-2018

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.

Answers (3)

Answers (3)

shashanks459532

24-12-2018

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

Arun_Patidar

MVP

20-12-2018

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;

}

shashanks459532

20-12-2018

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.