Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Rendercondition to render a component cq:dialog field specific to a template

Avatar

Level 2

I'm encountering an issue with rendering a component field that's specific to a template.

 

For instance, let's consider a text component with fields for Eyebrow, Title, and Description. Now, I've added a new field called Bio Detail to the text component.

My goal is to hide the Bio Detail field on templates other than the Bio Page Template. Additionally, on the Bio Page Template, I want to hide all other fields of the text component except for Bio Detail.


Note :- I am using jsp for render condition.

1 Accepted Solution

Avatar

Correct answer by
Level 3

@HARSH_TIWARI If you are planning to switch from JSP to Sightly, you can refer to this blog https://ankanghosh-webdev.medium.com/granite-render-condition-in-aem-64d32f03a7d1

It covers a few scenarios for render conditions and you can always use the java logic in your JSP with a little modification done on your end. 
Thanks,

Ankan Ghosh

View solution in original post

4 Replies

Avatar

Level 2

Thankyou @sravs for adding the blog link but that is not much helpful for me.

Avatar

Correct answer by
Level 3

@HARSH_TIWARI If you are planning to switch from JSP to Sightly, you can refer to this blog https://ankanghosh-webdev.medium.com/granite-render-condition-in-aem-64d32f03a7d1

It covers a few scenarios for render conditions and you can always use the java logic in your JSP with a little modification done on your end. 
Thanks,

Ankan Ghosh