Posts

Showing posts with the label AEM

AEM Interface All links

  i18n dictionary http://localhost:4502/libs/cq/i18n/translator.html

How to read checkbox values from the HTML form data in AEM | AEM Servlet

  Please navigate to my linked blog link below. How to read checkbox values from the HTML form data in AEM | AEM Servlet

Expose AEM index as json

  You can also extract the indexes in your system in JSON format. In order to do this, you need to access  http://localhost:4502/oak:index.tidy.-1.json

Advances of SPA in AEM

 Advantages of  SPA in AEM High Performance Mobile Traffic is more dominants. Micro service  architecture deceased web development time

Create AEM System user | Service user from Configuration | Ensure Service User Config

Image
  ACS AEM Commons - Ensure Service User Configuration Navigate to  http://localhost:4502/system/console/configMgr Search " Ensure Service User "  Using this configuration service you can create the system user and apply the permission(read/write) on the folder. You can also create the configuration in your code base to deploy the below xml file to create system user and permissions. Configuration Create an OSGi configuration for each service user /apps/test-app/config/com.adobe.acs.commons.users.impl.EnsureServiceUser-testServiceUser <?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:primaryType="sling:OsgiConfig" principalName="keshav-service-user" operation="add" ensure-immediately=...

Curl Command to set property on the Page

Image
  Set the property  from the  curl command  in  AEM . You can set the property at a  Single page  or  Multiple pages  in less time.Basically curl command is used to update property on multiple pages, publish/unpublished the multiple pages in one go on Dev, UAT, Production and other environment. I am trying to set the  navRoot  property as  false  for single and multiple pages. 1. Set navRoot property for the single page. You can just run below command in command prompt and can check the  jcr:content  of the below page path , Property will be updated as  navRoot=false    curl -u admin:admin -FnavRoot="false"  http://localhost:4502/content/we-retail/us/en/jcr:content 2. Set navRoot property for the multiple pages/More than one page. You can use the  &&  separator for the multiple pages. curl -u admin:admin -FnavRoot="true"  http://localhost:4502/content/we-retail/us/en/jcr...

Curl Command to Publish the AEM Page

Image
  Publish the single and multiple pages from author to publisher environment using the curl command.   Command for Publish a single page. curl -u admin:admin -X POST -F path="/content/we-retail/us/en/jcr:content" -F cmd="activate"  http://localhost:4502/bin/replicate.json Command for Publish multiple pages. curl -u admin:admin -X POST -F path="/content/we-retail/us/en/jcr:content" -F cmd="activate"  http://localhost:4502/bin/replicate.json  && curl -u admin:admin -X POST -F path="/content/we-retail/us/en/experience/jcr:content" -F cmd="activate"  http://localhost:4502/bin/replicate.json   To run the command  Open the Command Prompt  and  paste the curl command  and enter .  Please see the snapshot below for the reference. See the success output. If you want to double check whether your page is published or not just navigate the  page path  and see the u pdated date and time  in the  cq:lastReplicated...

Remove the default colors from Colorfield dialog in AEM

Image
Add the property showDefaultColors="{Boolean}false"   Once you will add this property. All the default colors will be disappear from the colorfield dialog. You can show your custom colors as per the requirement. Please see the below for the reference.  <backgroundColor jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/colorfield"     showDefaultColors="{Boolean}false"     text="Background Color"     fieldLabel="Background Color"     name="./backgroundColor"     showProperties="{Boolean}false">   <items jcr:primaryType="nt:unstructured"> <red jcr:primaryType="nt:unstructured" value="#FF0000"/>     <white jcr:primaryType="nt:unstructured" value="#FFFFFF"/>     <black jcr:primaryType="nt:unstructured" value="#000000"/>   </items> </backgroundColor> Yo...