CQ

Custom ComboBox with Dynamically Generated option value by the Servlet

In this post, I will explain how to create ComboBox with Dynamically generated option value in AEM6 dialog? Let’s see with the example:- I created a dialog with a tab named as tab1. Under this node, I created a node named as items with the property jcr:primaryType = cq:widgetCollection.Under this node, I created a node […]

Read More

Dispatcher Configuration on Apache2 Server

In this blog, I will explain the easiest way of dispatcher configuration on Apache2 Server and OS version Ubuntu 15.04. This configuration will also work on Ubuntu 14.04. Let’s start:- Firstly, you have to install Apache2 server on your Ubuntu machine using this command- sudo apt-get install apache2 Now type the command- sudo service apache2 start Now […]

Read More

Custom Multifield xtype in AEM

In this blog, I will explain how can we create custom multifield in a dialog and design dialogs. For creating a custom multifield, Firstly we have to create a node with the properties jcr:primaryType = cq:Widget and xtype = multifield. Under this node we have to create a node named as fieldConfig with the properties jcr:primaryType = cq:Widget and xtype = multifieldpanel. For the custom multifield xtype we […]

Read More

Resource Resolver Object in AEM6.x Services

As we know that getAdministrativeResourceResolver() method has been deprecated from ResourceResolverFactory interface in AEM6 and above versions. Then the question is-   Q1). How to get ResourceResolver object in Sling services in AEM6.0 and above versions? If you are working with AEM6 or AEM6.1 then you have two options- If you know the credentials of […]

Read More

RTE Source Edit Plugin in AEM

In this blog, I will explain how can  we enable source edit plugin in RTE component in AEM. To add Source Edit plugin in RTE component, we have to create a node named as rtePlugins under richtext node having jcr:primaryType=nt:unstructured. Under this we have to create a node named as misctools having property features= *.Let’s see it with an example-I […]

Read More

Removing component’s auto generated div in AEM

In this blog, I will explain how can we remove extra div those are generated automatically when we use either sling:include or cq:include in our jsp. Now the question arises, can we get rid of these extra divs? Will they be generated everytime? If we can remove these extra divs, how can we do that? In this post, I […]

Read More

Template visibility at every page

In this blog, I am going to share a very interesting point related to the allowedPaths property.If you create your project and in this project you create a template and want to create a page using this template, your template will not visible in the siteadmin. But if you copy the same template and paste in the […]

Read More

Remove p tag from RTE in AEM

In this post, I will explain how to remove <p> tag from RTE (Rich text editor) in AEM. For removing the <p> tag we have to create a node named as htmlRules having jcr:primary type nt:unstructured. This node will have to create under the widget node which xtype is richtext. In my case, I have created a node named as “heading with property xtype = richext“ and created […]

Read More

AEM Templates in Details

In this post, I will explain most useful properties of templates or you can say most useful features provided by templates. Most of AEM developers familiar with these properties but don’t know how to use them. In this post I will explain all of these properties in details.   Agenda   Allowed Paths Property (allowedPaths) Allowed Templates Property (cq:allowedTemplates) Allowed […]

Read More

Common Error with AEM Services

  In this post, I will explain a common mistake we make, when we create a simple service class for AEM. Sometime we create a service class using @Service annotation  & build our project using –  mvn clean install -P<profileName>  command. We found an error as shown below – [ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr (generate-scr-descriptor) […]

Read More