OnDeploy Scripts


OnDeploy Scripts to modify JCR content during Code deployment. During the course of project development, there would be many scenarios where some content (property/node) needs to be modified throughout the content hierarchy.  That content fixup needs to be done in all the environments and many times its just a one time job. To cover this very common use case, ACS Commons (3.15+) came up with OnDeploy Scripts.

Persisted Selectors


What is Selector? Apache Sling defines Selectors as: ” If the first character in the request URL after the resource path is a dot (.), the string after the dot up to but not including the last dot before the next slash character or the end of the request URL comprises the selectors. If the resource…

Tool for Dispatcher Security


Dispatcher Security is one of the most ignored things in AEM implementations. I used to wonder why people still do this manually and don’t follow any best practices while configuring it. Adobe recommends using a Security Checklist, but who has got time for doing it manually when you can automate it. And it gets complex with…

Improvise the Search Index


Conquering the necessary query is a battle half won (Read QueryBuilder API).  The other crucial aspect of Search in AEM is indexing. Many times it happens that even after the Query is well written with correct predicates, it results in slow executions and traversals of the repository. This can prove to be an expensive request…

Digest the Query Builder API


A lot of times I have experienced and seen that Heavy Queries are mostly responsible for the bad page load speeds and performance of the application.  We all have used Query Builder API in some form or another , but a lot of times we miss its complete potential. Through this post I want to…

GitHub Project


Hi, Watch out this GitHub space – https://github.com/hashimkhan786 where I would be sharing a lot of useful scripts and code for everyone to pick or enhance and contribute to the AEM community. Feel free to clone the repository and use in your projects or if you think you can contribute to the repositories you are most…

The Perfect AEM Deployment


In the last few projects, I have seen and learnt a lot of best practices and potential flaws in an AEM infrastructure. I have been lucky enough to work with some interesting clients – who have given me many difficult scenarios and system related issues – which eventually led me to ponder over the flaws…

Useful Shell Scripts for AEM


Evolve your work-style with Shell Scripts in AEM. I thought of sharing few of the useful scripts here so that you can also use them in your day to day work without much hassle. Secondary aim of this blog post is to expose you to Shell scripts , if you are not using it yet and give you an inspiration to build your own script one day and share with everyone .

Sling Pipes


Its a tool where you can load content tree nodes , perform some operation and either Retrieve an output or Modify the nodes. The aim here is to provide reusable blocks called pipes which can be configured for any possible operation on content.

Query Builder


Search is always the backbone of many functionalities in an AEM application . It becomes quite critical in Business scenarios to implement the most Optimized Query which fetches the best possible result. To perform search in AEM , Query Builder is highly recommended over simple SQL / XPATH query statements. The Query Builder , if…