In AEM 6.0, usingdata-sly-test="${wcmmode.edit}"would be false in "preview" mode in the authoring instance. However, this is no longer the case in 6.1. Trying to use ${wcmmode.preview} also doesn't work. Is there a way to determine if the page is in preview mode in sightly?Thanks
Hi, I am trying to display the date on which a particular item is created.The issue is with formatting.For instance, - If the item is created a day ago then i need to display 1 day ago. - If the item is created a on the same day then display number of hours like 3 hours ago. - If the item...
Hi,I want to create PDF of an page.My requirement is there will be a component as "Download as PDF" when i click on that component the current page will download as pdf.I gone through about Apache FOP and i created a sling servlet when i clicking on the above mentioned component made a ajax call to...
Hi,I have an image asset in my DAM. I want to retrieve the versions of the asset from the DAM using a querybuilder.json request call?Is there some parameter or property that I can pass in which will return the versions of the asset? Thank you
Hi All,I read the below in one of the forum.What is a Service?An OSGi service is a java object instance, registered into an OSGi framework with a set of properties. Any java object can be registered as a service, but typically it implements a well-known interface.The client of a service is always an...
Hi,I need nested multi field example code for classic UI,please any one help me on this.I checked previous posts for the same but it has not been answered.
I am getting an unclosed session detected warning in the error.log . I have opened and closed all the sessions in the finally block. Still I am getting the warning. It has made the author instance very slow due to large number of unclosed session . Here are the error logs 04.06.2015 02:45:54.921 WAR...
I have a template with a parsys.In the template after Parsys I need to add the blog mechanism.blog mechanism should contain :- 2 input fields [Name and comment] basically a form .so when user submits it .The comment entered must get displayed below the above mentioned form. MY question:-Now how ...
Hi,I have a shell script running on AEM server which uploads assets from a shared drive to AEM (6.0 SP2) over regular interval. I am using curl script to ingest this file to AEM although what i am noticing that previous version information of asset is getting lost.curl -s -u admin:admin -F "jcr:prim...