Difference between sly data-sly-test and div data-sly-test in Sightly/HTL

October 31, 2023 Sagor Chowdhuri 0

1. The sly will unwrap itself automatically when the expression in data-sly-test evaluates to true. For Example: <sly data-sly-test=”true”>foo</sly> will render foo 2. The div will not unwrap automatically. For Example: <div data-sly-test=”true”>foo</sly> will render <div>foo</div> 3. If you use data-sly-unwrap the div tag will unwrap. sly is just a shorthand. For […]

How to start AEM in debug mode

July 22, 2022 Sagor Chowdhuri 2

During development, debugging your application can be very useful in determining the location of defects, evaluating expressions, and understanding the overall flow of the application. Your AEM application may consist of many Models, Services, Servlets, and Schedulers you have the […]

AEM Geeks tutorials

Clear cache in AEM

July 21, 2022 Sagor Chowdhuri 0

There are two ways to clear the HTML and Java Script (JS) cache in AEM. 1. Through Felix console: Go to the Felix console URL: http://localhost:4502/system/console/scriptcache Click on the clear cache or click on remove to clear individual files cache. […]

Use Groovy Script in AEM

July 19, 2022 Sagor Chowdhuri 4

The AEM Groovy Console provides an interface for running Groovy scripts in Adobe Experience Manager. Scripts can be created to manipulate content in the JCR, call OSGi services, or execute arbitrary code using the AEM, Sling, or JCR APIs without […]