Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

In Metadata Schema Form Editor , how to hide specific tab

Avatar

Level 1

there is two tabs jpeg1 and jpeg2 i need to hide jpeg2 , how i will achive it ?

mankaran_0-1722945290146.png

 

 

8 Replies

Avatar

Community Advisor

Hi, 

You need to use granite:renderconditions., please see my response with a working example here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-manage-different-as... 

 

You can learn more about granite:renderconditions. here: https://gist.github.com/nateyolles/eec2f56acc7153fe9fb7dd6637e8f7ad 

https://jpsoares.medium.com/aem-granite-render-conditions-438c804b1e5a

Hope this helps



Esteban Bustamante

1Q)  im using aem 6.5 on premise would this functionality work for aem 6.5

2Q)  can u please ellaborate the process 

Avatar

Community Advisor

@Mankaran_Singh @Vanshika999 @NikhilRakala 

 

This solution works for both AEM on-premise and AEMaaCS. The example provided is a very similar use case to yours, which means you will only need to make a few small adjustments. You can read the full description in the thread I shared. Please review the documents I provided to understand granite:renderconditions, and then apply the changes according to your requirements. Keep in mind that we are here to guide you on best practices and approaches, but we cannot code for you.

 

The granite:renderconditions hide or show a resource based on a "condition," so you need to be clear about "when" your "jpeg2" will be hidden to adjust that condition in the granite:rendercondition. Again, check the example I provided so you understand where the condition should be updated

 

Hope this gives you more clarity.

 



Esteban Bustamante

Avatar

Level 1

@EstebanBustamante 
Apologies if it seemed like I was asking for coding—maybe you didn’t understand the question I asked for. I was unclear about the node structure for the granite:render condition but finally i could draft a solution for this with the help of other resources as well.

Thank  you for your guidance only on  best practices and approaches

Avatar

Administrator

@Mankaran_Singh Did you find the suggestions from users helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni

Avatar

Level 2

The exact ques is we created 2 custom tabs in metadata schema jpeg1 and jpeg2 and when i upload image in assets then in properties there should be both tabs visible jpeg1 and jpeg2 by default but i want that only jpeg1 tab is visible and jpeg2 tab should be hidden. How can i achieve this?