How to remove "Groups" and "Rollout" button from component? | Community
Skip to main content
New Participant
Dec 19, 2018 2:02 PM UTC
Solved

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

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.
arunpatidar
arunpatidarAccepted solution
New Participant
Dec 19, 2018 3:24 PM UTC

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

4 replies

New Participant
Dec 24, 2018 9:42 AM UTC

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

Translate
arunpatidar
New Participant
Dec 20, 2018 6:03 PM UTC

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;

}

Translate
Arun Patidar
New Participant
Dec 20, 2018 12:12 PM UTC

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.

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Dec 19, 2018 3:24 PM UTC

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.

Translate
Arun Patidar