Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Granite Render condition on the basis of path

Avatar

Level 7

https://adobe-consulting-services.github.io/acs-aem-commons/features/ui-widgets/path-rendercondition...

 

 

page load is required to work this ?

 

my requiremnet is like that : if am at /content/dam/we-retail ...should be able to see the button whcih i added on the top menu of aem .....and if i am at /content/dam/anyotherfolder ...should not be able to see the button ...

 

I Tried render condition granite:rendercondition with servelt resourceType ...it worked but my servlet get triggerd only on page load ....

 

On navigating in aem ..from conetent to dam to we -retail there is no page load ...so untill and unless i refresh the page my render condition servelt doesnt work 

 

https://adobe-consulting-services.github.io/acs-aem-commons/features/ui-widgets/path-rendercondition...

This link i found bt this alos didnt work but this suggests similar thing which is my requirement and i saw the git hub for the below link didnt understand they are considering page load or not ,,please suggest .

4 Replies

Avatar

Level 7
@ChitraMadan tahnks for the reply ...but this is other button i have to make changes on shell header action on top menu ..

Avatar

Level 7

Got The solution ...just used granite:id and used show() and hide() function

Avatar

Level 3

Hi @AdobeID24 ,

I have an requirement to hide the download button for the assets under /content/dam/my-project/teams-folder. So i am trying to use the path granite render condition for the download button which is under /libs/dam/gui/content/assets/jcr:content/actions/selection/download. can you please give an suggestion.

 

Thanks in advance!