Expand my Community achievements bar.

SOLVED

Customize Sidekick View based on Permissions assigned

Avatar

Level 10

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

1 Accepted Solution

Avatar

Correct answer by
Level 1

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

View solution in original post

7 Replies

Avatar

Level 1

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

Avatar

Level 10

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

Avatar

Level 10

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

Avatar

Level 10

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

Avatar

Level 10

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

Avatar

Correct answer by
Level 1

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

Avatar

Level 10

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,