Step 1: Add the following changes to the schema.graphql file """ Schema for Voting Feature """ type Vote @model { id: ID option: String optionCount: Int } type VoteType {…
PROBLEM: How to get the current time for a specific timezone? SOLUTION: The following code will give you access to the current time in 'America/Los_Angeles'. You can get the date/time…
Go to API Gateway consoleSelect the stage Select the Enable API Cache checkbox 4. Select the GET path under Resources -> /content/{proxy+} 5. Select the Method Request6. Expand Request Paths7.…
I used the following command to generate the cloudfront signed url aws cloudfront sign --url https://d111111abcdef8.cloudfront.net/private-content/private-file.html --key-pair-id APKAEIBAERJR2EXAMPLE --private-key file://cf-signer-priv-key.pem --date-less-than 2022-01-01 To sign a URL, you need the key…
Javascript code to read cookie by name: function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i <ca.length;…
STEP 1Create a folder ( say promo ) for the component inside /apps/<projectname>/components folder under the ui.apps module. STEP 2Inside the promo component folder, create a .content.xml file with the…
Problem: When we run the workflow on a collection of assets in AEM DAM, we get the following error: Maximum number of assets that can be selected for multiple workflow…
Start the AEM server using the following command: $ CQ_JVM_OPTS='-server -Xmx2048m -XX:MaxPermSize=2048M -Djava.awt.headless=true -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=30303' ./start Go to Run/Debug Configurations, Click + icon and Click Remote Make sure the port number…