Granite Render condition on the basis of path | Community
Skip to main content
AdobeID24
Level 5
July 21, 2020

Granite Render condition on the basis of path

  • July 21, 2020
  • 2 replies
  • 2927 views

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

 

 

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/index.html

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 .

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

ChitraMadan
Community Advisor
Community Advisor
July 21, 2020
AdobeID24
AdobeID24Author
Level 5
July 21, 2020
@chitramadan tahnks for the reply ...but this is other button i have to make changes on shell header action on top menu ..
AdobeID24
AdobeID24Author
Level 5
July 23, 2020

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

Level 4
March 14, 2024

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!