Customize Sidekick View based on Permissions assigned | Community
Skip to main content
Level 9
October 16, 2015
Solved

Customize Sidekick View based on Permissions assigned

  • October 16, 2015
  • 7 replies
  • 1813 views

Hello,

Is there any way i could restrict the sidekick view to a particular user using permissions in AEM?

I would like to hide the Versioning and the Information in Sidekick indicated by a lock and clock symbol., along with the scaffolding as indicated in red(attached) in the sidekick.

Please let me know.

Regards,

Nicole

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 sreekanth_choud

hello Nicole,

I am not aware of associating profile to sidekick... however you can always hide/disabled the necessary UI elements as explained in the above blogpost....

7 replies

sreekanth_choud
October 16, 2015

Nicole,

Check this blog post, it has information on how to get the sidekick and disable components panel

http://experience-aem.blogspot.com/2013/08/get-sidekick-instance-and-disable.html

Based on userid you can execute the script and selectively disable (setDisabled()) or hide (setVisible) sidekick elements

To see the workflow tab first, a quick and crude way is to get the tab panel and set the workflow tab as active on page load

CQ.WCM.getSidekick().items.items[0].setActiveTab(4);// workflow tab becomes active

thanks

sreekanth

smacdonald2008
Level 10
October 16, 2015

You can dynamically change the appearance of the sidekick by workign at the JSEXT level. See this community article as an example - as an example of modifying the sidekick -- it adds a button:

http://aemfaq.blogspot.ca/2013/04/adding-button-to-sidekick.html

 Your use case would involve more code -- but with the right app logic - you can do it. 

Here is another piece of content that may help:

https://gist.github.com/kand/4733278

HTH

Scott

Level 9
October 16, 2015

So Scott,  would there be no easy way to hide the icons in sidekick using permissions? i was hoping there would be one :(

Level 9
October 16, 2015

sreekanth choudry nalabotu wrote...

Nicole,

Check this blog post, it has information on how to get the sidekick and disable components panel

http://experience-aem.blogspot.com/2013/08/get-sidekick-instance-and-disable.html

Based on userid you can execute the script and selectively disable (setDisabled()) or hide (setVisible) sidekick elements

To see the workflow tab first, a quick and crude way is to get the tab panel and set the workflow tab as active on page load

CQ.WCM.getSidekick().items.items[0].setActiveTab(4);// workflow tab becomes active

thanks

sreekanth

 

 

Hello Sreekanth,

Thanks for your suggestion, could you guide me a little further as to how we could have the user or user's profile associated to the sidekick. The user would just be a reviewer of a page who has to see limited items in sidekick.

Wondering where i could and how i could associate the profile to the sidekick.

Please let me know.

Thanks,

Nicole

smacdonald2008
Level 10
October 16, 2015

No - you have to code cool to get the full results that you want. However - having said that -- take a look at this thread:

http://forums.adobe.com/message/4549162

sreekanth_choud
sreekanth_choudAccepted solution
October 16, 2015

hello Nicole,

I am not aware of associating profile to sidekick... however you can always hide/disabled the necessary UI elements as explained in the above blogpost....

Level 9
October 16, 2015

Thanks Scott,Managed to actually avoid the design mode coming up, using permissions, but the rest of the icons is what am targetting now. Thanks for your kind suggestions:) will check and update if i am abloe to make progress playing around with permissions,

Also is it possible that when a user clicks a page he sees the Workflow tab in sidekick first than the components tab?, so that workflow tab in sidekick is something that user views first and reminds him of his task to trigger workflow?

Regards,