Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

how to hide quickpublish & manage publication in sites for touch UI AEM 6.5

Avatar

Level 3

Hi,

 

I have to hide quick publish & manage publication buttons for particular user group in AEM 6.5 touch UI. I tried looking into giving  deny permission in useradmin but i could not find that particular nodes.

 /libs/wcm/core/content/sites/jcr:content/actions/selection/quickpublish, 

/libs/wcm/core/content/sites/jcr:content/actions/selection/managepublication.

 

Please help me to proceed with this.

 

Thanks in advance 

Divya

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

you can hide those button using ACL if you remove replication permission from /content part

Another way is to use sling merger https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/sling-resource-merger.html where you can override existing navigation nodes(/libs/wcm/core/content/sites/jcr:content/actions/selection) and use sling:hideResource (Boolean) - Indicates whether the resources should be completely hidden, including its children.



Arun Patidar

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

you can hide those button using ACL if you remove replication permission from /content part

Another way is to use sling merger https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/sling-resource-merger.html where you can override existing navigation nodes(/libs/wcm/core/content/sites/jcr:content/actions/selection) and use sling:hideResource (Boolean) - Indicates whether the resources should be completely hidden, including its children.



Arun Patidar

Avatar

Level 3

 Thank you for your response.

 

I have used ACL approach since i should hide the quick publish & manage publication options only for specific user groups. I have given only read access to that group and denied replicate ACL.

 

While doing this, i can hide quick publish option but manage publication button is still visible.

 

Thanks,

Divya

Avatar

Community Advisor

In this case you can override manage publication and add granite:rendercondition node and create custom simple renderer. e.g. https://aemlab.blogspot.com/2019/07/aem-granite-custom-render-conditions.html

 

In this servlet you can get user and groups from request e.g. https://github.com/arunpatidar02/aem63app-repo/blob/master/java/SimpleGetGroup.java

 

JSP Example -

https://github.com/arunpatidar02/aem63app-repo/blob/master/jsp/grouprenderecondition.jsp

 

 



Arun Patidar