Hi, I am new to AEM development.I have a sling servlet with the below code and I am trying to read a page property. This code snippet works in Author mode, but not in the publisher. ResourceResolver resourceResolver = request.getResourceResolver();PageManager pageManager = resourceResolver.adaptTo(P...
I am trying to retrieve the page details using groovy script. I need to get replication status from those details but, the cq:lastReplicationAction is not available for the page in the jcr content.What is the way to achieve this. A code snippet will be really helpful.
In RTE I have one scenario where in ParaformatI want to add class name="para" when the Paragraph is selected, <p class="para">TEXT</p>when Quote is selected <quote class="quotations">How can we do that in RTE?
Getting below error when JUnit executed for a model. Is this issue to do with this plugin? <plugin> <groupId>biz.aQute.bnd</groupId> <artifactId>bnd-maven-plugin</artifactId> <executions> <execution> ...
Hello TEAM, Current Behavior :After several deployment to AEM instance, Sling has an issue to render any component as a result site looks blank.Expected behavior/code Stable AEM instance after every deployment.Environment Details: AEM 6.5.13Core Components version 2.20.8openjdk version "11.0.19" 202...
If you have basic string properties on your page, you can add indexes like this: <indexRules jcr:primaryType="nt:unstructured"> <cq:PageContent jcr:primaryType="nt:unstructured"> <properties jcr:primaryType="nt:unstructured"> <bonusId jcr:primaryType="nt:unstr...
Hello Team, Since AEM (6.5 in my case) by default downloads DAM PDFs. We added below lines and we can view PDFs upon clicking. <LocationMatch "\.(?i:pdf)$">ForceType application/pdfHeader set Content-Disposition inline</LocationMatch> PROBLEM:We also have to give way to download as an option. so for...
Hi all,I have issue that is regarding a redirect from www to a non www site (i.e http$://www.domain.com to http$://domain.com). I know this can be done using sling mapping in /etc/map but faster accessing i wants this done at the dispatcher level according to AEM best practices. This is for an AEM a...
Version: AMS 6.5.16Hi,I am trying to access newly created Graphql over the dispatcher, when i try to access the same url publish i see the same results but not in dispatcherI followed below steps to create and publish with Graphql Created Custom CF modelCreated couple of CF's in dam folder with data...