How to remove "Groups" and "Rollout" button from component? | Community
Skip to main content
New Participant
December 19, 2018
Solved

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

  • December 19, 2018
  • 4 replies
  • 1248 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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.

4 replies

New Participant
December 24, 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).

arunpatidar
New Participant
December 20, 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;

}

Arun Patidar
New Participant
December 20, 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.

arunpatidar
arunpatidarAccepted solution
New Participant
December 19, 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.

Arun Patidar