Posts

User Segmentation and Personalization with AEM

Image
Campaign Overview The campaign we are going to create will target content based on user profile information.  Our use case is simple:  when a user has designated that their preference is to use Apple's Mac laptop, we'll target Mac related content.  If the user has designated their preference to be Windows based laptops, then we'll target Windows based laptop content. Note that there are endless possibilities for properties that could be input to a campaign.  We are using actual user profile properties, but it could be an IP address range, user's browser history or anything else that can be retrieved/specified as a parameter in a web application. Our goal is to create a campaign that targets the following audiences: Adults who prefer Mac Teens who prefer Mac Adults who prefer Windows Teens who prefer Windows Step #1:  Create Campaign Container First, let's create a campaign container.  A campaign container organizes similar campaig...

Getting Service Resource Resolver in AEM 6 [Copied from Code lit]

From AEM 6 usage of admin session and admin resource resolver have been deprecated. Now we should use service resource resolver API to retrieve the session. Below are the steps Creating System users 1.        Go to  http://<<host>>:<<port>>/crx/explorer/index.jsp 2.        Click on user administration 3.        Click on create system user 4.        Enter user id.   You can create any number of system users based on your requirement. A typical use case is to have two separate system users, one for read operation and another for write. You may want to further sub categorize and create role oriented users. Once system users are created, assign them permission according to their roles or categories. Assign user mapping 1.        Go to felix bundle console 2.        Find  org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl  configuration 3.        Add a new entry in below format – 4.        bundleId:subserviceName = systemUser 5.        Write a service whi...

AEM 5.6 to 6.1 Upgrade

AEM upgrade - CQ 5.6.1 to AEM 6 Prerequisites •         You must have n ew AEM 6.X installation jar •         Create a p roduction Server Replica with similar content and configurations to existing CQ 5.6.1 environment so that you can test the upgrade changes. •         Create a seperate n ew Code branch for 6.X code. •         Make performance testing scripts ready . Steps to Upgrade 1.        Repository Upgrade AEM 6.1 doesn't support crx2 and requires content migration to Oak repository. There are several ways to do it Package deployment. – If repository volume is not too high (up to 30 GBs), package deployment is the most easy and simple way to migrate content. Use crx2oak tool - Use this if content volume is high. Will cover steps for this tool in another post. For this post I'll assume that repository migration is done using packages. 2.        Cleanup before starting the upgrade •          Backup and delete workflow launchers and sling Jobs - This will prevent workflows ...

Adobe CQ Interview Questions

Image
 Adobe CQ Interview Questions 1.           1. What is Adobe CQ5? (now Onwards AEM5.6-Adobe Experience Manager 5.6 ) What is CQ5? What is a Content Management System? CQ5 is a java based content management system from adobe, previously Day CQ5. 1)    It is based on a content repository(i.e it uses a content repository to store the content of a website) and use JCR(java content repository) specification to access the content repository. 2)    It uses RESTful Apache Sling framework to map request url to the corresponding node in content repository 3)    it uses powerful OSGi framework internally to allow modular application development. It means  individual pieces of your application(called bundles in terms of OSGi) can be independently started and stopped. CQ5 uses Apache Felix as the OSGi container. Therefore different parts of cq5 can be independently started and stopped. Coming to why a content management system is required? Some we...