Posts

AEM in docker

Image
 Hello Everyone, In this post we will see how we can run our aem server from docker. Before that why we really need docker, whenever we have a new team member, they will struggle for project setup. Now imagine we have a set up file we can share with any new member who is joining our team. They simply can start their work without wasting time on set up or we can directly start giving KT, so using docker we can achieve this we can create a docker image and we can share the image with team members. What is docker image ? A Docker image is a lightweight, standalone, and executable package that contains everything needed to run an application, including the application code, libraries, dependencies. Everything in one image. How to create docker image ? 1st get docker installed on your machine/system docker toolbox is deprecated so use docker desktop software.  You might face some challenges while installing and starting docker. Install docker desktop Enable h

Service user, resource resolver and session

Image
 Hello Everyone, This is about service user/ system user, resource resolver and session.  In AEM if we want to read or write anything from backend we have two APIs Sling/resource API and jcr/node API. if we are using sling/resource api we need to have resources resolver and for jcr/node api we need to have jcr session. To get jcr session we use SlingRespositoy.loginService() and to get resource we use ResourceResolverFactory.getServiceResourceResolver() method. Previously with aem if we need resource resolver or session we were using sling methods SlingRepository.loginAdministrative() and ResourceResolverFactory.getAdministrativeResourceResolver() but using this method we are getting the admin session sometimes we might not need to have admin session still we are using admin session. Now these methods are deprecated and replaced with SlingRepository.loginService() and ResourceResolverFactory.getServiceResourceResolver() lets see how to use these meth

Editable/dynamic template style system

Image
 Hello everyone, In this post we will see style system for editable template. Basically a template-author can select css style from available style on page/component once the css is present in the client library. developer write the css and keep it in client library now template-author can use the style as per their requirement. Template-author can decide and achieve any style from available styles they want to apply on page. Template-author and developer can define the behavior of the component or page. Before proceeding please go though the editable template blog  Editable template (rjaem.blogspot.com) we have 2 types of style system. Page level style system Component level style system Page level style system : this style will get apply on body tag of the page. for example, we add the any font color, font family or font size on page level style system it will get applied on the template body so it will apply on the all the fonts available on the page. We should use page level policy

Synchronize AEM and eclipse

Image
 Hello everyone, In this post we will see how we can synchronize AEM with eclipse editor. Before that make sure you have installed aem plugin on eclipse  Install AEM plugin on eclipse (rjaem.blogspot.com)  . Now update the project structure For that go to module -->right click -->maven-->update project -->select the module--check the checkboxes including Force update of Snapshots/release-->ok. Now let's define the project facets for our modules to do that go to module --> right click -->properties-->Project facets --> select content module , java , sightly -->Apply -->Apply and Close. Project facets : Facets define characteristics and requirements for Java EE projects and are used as part of the runtime configuration. When you add a facet to a project, that project is configured to perform a certain task, fulfill certain requirements, or have certain characteristics. After this sync module root path with aem server go to module --> right click --

Editable template

Image
Hello everyone, In this post I will try to throw some light on editable templates, as part of this we will start with comparison between static template and editable templates. Static template Editable templates Static templates are created by developers . Editable templates are created by template-author (non-developers) Static templates are stored in / apps   Editable templates are stored in / conf

Gmail SMPT server configuration

Image
 Hello everyone, By using following values on Day CQ Mail Service configuration you can enable send mail from AEM. Go to  Adobe Experience Manager Web Console - Configuration  search for Day CQ Mail Service , click edit the configuration values. Enter values as per below instructions: SMTP server host name :  smtp.gmail.com smtp.gmail.com : 465 SMTP user : your mail address SMTP password : your gmail account  password "From" address : your mail address SMTP use SSL : checked KEEP EDUCATING YOURSELF!!!!

Install AEM plugin on eclipse

Image
Hello everyone, In this article we will see how we to install the AEM plugin on eclipse. This will be required when we are synchronizing AEM with eclipse IDE. Synchronization is required when we are writing the code for any of the component, we don't need to write everything in CRX/de we can write in eclipse IDE and push the changes to CRX/de. follow below instruction for installing AEM plugin in eclipse IDE. In eclipse open help menu --> Click Install New software... --> In the next window enter the installation URL https://eclipse.adobe.com    Check both AEM and Sling Plugin for installation --> Click next -->Click next --> Accept the license agreement and click finish. Click yes for restarting the eclipse. KEEP EDUCATING YOURSELF!!!!