I need to write servlet code which can run in AEM 6.1 as well as in 6.3. But, as we use Felix in 6.1 and SCR in 6.3 how to write a common piece of code that works for both?
i made a connection to repository using JCRUtils and got session. Next, I need the resource but, when I am trying to fetch resource using resourceResolver, I am getting null. Whereas, if I use session.getNode, i am getting the node (not null). I also tried to use AdaptManager to convert the node to ...
I have checked, it's not there.Infact, the problem is really peculiar. At times when I download a package, I get zipped file, which I can upload. But, at other times when I download, I get unzipped file, which on compressing doesn't gets uploaded!
I use Mac.When I get the downloaded folder I created a zip using the jcr_root and meta_inf folders, only that zip get uploaded successfully. But if I try to zip the folder itself, which contains the jcr_root and meta_inf, that doesn't get uploaded.
Yes, I created the package from AEM Package Manager, it is showing PackageName.zip but it getting downloaded as a folder.How can I prevent it from getting downloaded as a folder? Is it some settings of the browse?
When I create a package in package manager, I build and install it, after which I download the package, but that gets downloaded a folder instead of a zipped file. Next if I try to upload the same page again after zipping it, it shows me error: as given in the image. What might be wrong?
I wanted to know what does these mean:1) i18n.get("{0} by {1}", "example: {5 days ago} by {Alison Parker}", dateText, userName)2) i18n.getVar(cfg.get("jcr:title", i18n.get("Comment")))