Showing posts with label Adobe CQ5. Show all posts
Showing posts with label Adobe CQ5. Show all posts

Sunday, 6 July 2014

CQ5.5 vs CQ 5.6 Features and different

CQ5.5 vs CQ 5.6 Features and different

1. Workflow API 
        CQ5.5 - com.day.cq.workflows
        CQ5.6 - com.adobe.granite.workflows
2. AEM Touch-Optimized UI but still classic UI is still fully operational
3. AEM eCommerce


Sunday, 22 June 2014

How to convert the jar to bundle command line

Download the file Click here

Create the file with following content - Manifest.txt


Manifest-Version: 1.0
Created-By: vimalesan
Bundle-ManifestVersion: 2
Bundle-Name: itextpdf-bundle
Bundle-Description: Package itextpdf an OSGi bundle
Bundle-Version: 5.1.0
Bundle-ClassPath: .,itextpdf-5.1.0.jar
Bundle-SymbolicName: com.itextpdf
Export-Package: com.itextpdf.text.pdf.draw;uses:="com.itextpdf.text.pd
 f,com.itextpdf.text",com.itextpdf.text;uses:="com.itextpdf.text.error
 _messages,com.itextpdf.text.pdf.draw,com.itextpdf.text.pdf,com.itextp
 df.text.factories,com.itextpdf.text.pdf.codec,com.itextpdf.text.pdf.c
 odec.wmf",com.itextpdf.text.factories;uses:="com.itextpdf.text,com.it
 extpdf.text.error_messages",com.itextpdf.text.pdf.parser;uses:="com.i
 textpdf.text.pdf,com.itextpdf.text,com.itextpdf.text.error_messages,c
 om.itextpdf.text.exceptions,com.itextpdf.text.pdf.codec,com.itextpdf.
 text.xml",com.itextpdf.text.xml.simpleparser.handler;uses:="com.itext
 pdf.text.xml.simpleparser",com.itextpdf.text.html;uses:="com.itextpdf
 .text,com.itextpdf.text.error_messages",com.itextpdf.text.pdf.hyphena
 tion;uses:="com.itextpdf.text.pdf,com.itextpdf.text.xml.simpleparser,
 com.itextpdf.text",com.itextpdf.text.pdf.collection;uses:="com.itextp
 df.text.pdf,com.itextpdf.text.error_messages",com.itextpdf.text.xml.s
 impleparser;uses:="com.itextpdf.text,com.itextpdf.text.xml.simplepars
 er.handler,com.itextpdf.text.xml,com.itextpdf.text.error_messages",co
 m.itextpdf.text.l10n.error,com.itextpdf.text.pdf.hyphenation.hyph,com
 .itextpdf.text.pdf.fonts.cmaps;uses:="com.itextpdf.text.error_message
 s",com.itextpdf.text.pdf.crypto;uses:="org.bouncycastle.crypto.paddin
 gs,org.bouncycastle.crypto.modes,org.bouncycastle.crypto.params,org.b
 ouncycastle.crypto,org.bouncycastle.crypto.engines",com.itextpdf.text
 .pdf.codec.wmf;uses:="com.itextpdf.text,com.itextpdf.text.pdf,com.ite
 xtpdf.text.pdf.codec,com.itextpdf.text.error_messages",com.itextpdf.t
 ext.pdf.events;uses:="com.itextpdf.text.pdf,com.itextpdf.text,com.ite
 xtpdf.text.error_messages",com.itextpdf.text.pdf.fonts,com.itextpdf.t
 ext.pdf.interfaces;uses:="com.itextpdf.text.pdf,com.itextpdf.text",co
 m.itextpdf.text.xml,com.itextpdf.text.xml.xmp;uses:="com.itextpdf.tex
 t,com.itextpdf.text.xml,com.itextpdf.text.pdf",com.itextpdf.text.log,
 com.itextpdf.text.pdf.internal;uses:="com.itextpdf.text.pdf,com.itext
 pdf.text,com.itextpdf.text.pdf.interfaces,com.itextpdf.text.error_mes
 sages",com.itextpdf.text.html.simpleparser;uses:="com.itextpdf.text.h
 tml,com.itextpdf.text.pdf,com.itextpdf.text,com.itextpdf.text.pdf.dra
 w,com.itextpdf.text.xml.simpleparser",com.itextpdf.text.exceptions,co
 m.itextpdf.text.pdf.qrcode,com.itextpdf.text.pdf;uses:="com.itextpdf.
 text,com.itextpdf.text.pdf.codec,com.itextpdf.text.error_messages,com
 .itextpdf.text.pdf.qrcode,com.itextpdf.text.pdf.fonts.cmaps,com.itext
 pdf.text.pdf.draw,com.itextpdf.text.pdf.fonts,com.itextpdf.text.pdf.h
 yphenation,org.bouncycastle.ocsp,org.bouncycastle.jce.provider,org.bo
 uncycastle.asn1,org.bouncycastle.asn1.x509,org.bouncycastle.asn1.ocsp
 ,com.itextpdf.text.pdf.crypto,com.itextpdf.text.exceptions,com.itextp
 df.text.pdf.collection,com.itextpdf.text.pdf.internal,com.itextpdf.te
 xt.pdf.interfaces,com.itextpdf.text.pdf.events,org.bouncycastle.asn1.
 tsp,org.bouncycastle.asn1.pkcs,org.bouncycastle.tsp,org.bouncycastle.
 jce,org.bouncycastle.asn1.cms,com.itextpdf.text.factories,org.bouncyc
 astle.cms,com.itextpdf.text.xml.xmp,com.itextpdf.text.xml.simpleparse
 r,org.bouncycastle.asn1.cmp,com.itextpdf.text.xml",com.itextpdf.text.
 pdf.codec;uses:="com.itextpdf.text.error_messages,com.itextpdf.text.p
 df,com.itextpdf.text",com.itextpdf.text.error_messages;uses:="com.ite
 xtpdf.text.pdf"
Import-Package: org.bouncycastle.asn1;resolution:=optional,org.bouncyc
 astle.asn1.cmp;resolution:=optional,org.bouncycastle.asn1.cms;resolut
 ion:=optional,org.bouncycastle.asn1.ocsp;resolution:=optional,org.bou
 ncycastle.asn1.pkcs;resolution:=optional,org.bouncycastle.asn1.tsp;re
 solution:=optional,org.bouncycastle.asn1.x509;resolution:=optional,or
 g.bouncycastle.cms;resolution:=optional,org.bouncycastle.crypto;resol
 ution:=optional,org.bouncycastle.crypto.engines;resolution:=optional,
 org.bouncycastle.crypto.modes;resolution:=optional,org.bouncycastle.c
 rypto.paddings;resolution:=optional,org.bouncycastle.crypto.params;re
 solution:=optional,org.bouncycastle.jce;resolution:=optional,org.boun
 cycastle.jce.provider;resolution:=optional,org.bouncycastle.ocsp;reso
 lution:=optional,org.bouncycastle.tsp;resolution:=optional

Execute the command :

jar cvfm itextpdf-5.1.0-bundle.jar Manifest.txt itextpdf-5.1.0.jar

Screen shots are below




default itextpdf jar is a bundle but the above mention way also works. It will give an idea for creating bundle. 

Friday, 21 March 2014

Create CQ5 project using maven Command prompt

maven Archetype for the CQ5 project is multimodule-content-package-archetype

 cmd> mvn archetype:generate
 -DarchetypeRepository=http://repo.adobe.com/nexus/content/groups/public/
 -DarchetypeGroupId=com.day.jcr.vault
 -DarchetypeArtifactId=multimodule-content-package-archetype
 -DarchetypeVersion=1.0.2
 -DgroupId=my-group-id
 -DartifactId=myproject
 -Dversion=1.0-SNAPSHOT
 -Dpackage=com.mycompany.myproject
 -DappsFolderName=myproject
 -DartifactName="My Project"
 -DcqVersion="5.6.1"
 -DpackageGroup="My Company"

 (before execute the command, verify did you install maven into your system).
 It ask the conformation for create the project. Press y

Tuesday, 5 November 2013

Ajax call & json object creation from the response using CQ5

javascript

var response = CQ.utils.HTTP.get("resourcepath.selector.json");
if (CQ.HTTP.isOk(response)){ 
var myObject =CQ.HTTP.eval(response);
alert(myObject.name);
}

selector.json.jsp
{"name":"vimal"}

Wednesday, 23 October 2013

Adobe CQ5 Introduction

Adobe CQ5 is one of the java based web content management system. It combines with DAM, CRXDE Lite, inbox, website console, social collaboration, workflow, campaigns, Users & groups etc. It uses Sling framework, CRX content repository, felix (OSGi framework).

There are three important persons in Adobe CQ5 website creation
Developer – One who create the component
Author - One who Create, modify, delete the content using component and activate the page to publish
End User – One who visit the site

There are two instances in Adobe CQ5
1.      Author instance
2.      Publish instance

Author instance
            It provides the developer to create the new component, templates, workflow, etc. It allows the author to create, edit, delete and publish the content to publish instance

Publish instance
            End user visit the site from publish instance. Here you can’t create, edit or delete the content. Note: It runs with minimum files which is need for publish instance

Note:
Why author instance and publish instance?
         In real the world, sites contents are changed daily bases. So that, They separate the authoring and development in the author instance. Deploy site, load balancing, etc in publishing instance. They maintain the workflow while publishing pages from author to publish environment. 

Tuesday, 17 September 2013

Installing Instances of Adobe Experience Manager(CQ5)

Two instance

1.   Author

2.   Publish

Installing an Author Instance

1.   Copy the  jar file and license properties file in one folder

2.   Change the jar file name into cq5-author-p4502.jar

3.   Double click the jar file or open respective folder in command prompt and give the command

32 bit machine - java -Xmx1024M -jar cq5-author-p4502.jar

64 bit machine - java -XX:MaxPermSize=256m -Xmx1024M -jar cq5-author-p4502.jar

Installing a Publish Instance

1.   Copy the  jar file and license properties file in one folder

2.   Change the jar file name into cq5-publish-p4503.jar

3.   Double click the jar file or open respective folder in command prompt and give the command

32 bit machine - java -Xmx1024M -jar cq5-publish-p4503.jar

64 bit machine - java -XX:MaxPermSize=256m -Xmx1024M -jar cq5-publish-p4503.jar

Note: Default username and password for Adobe CQ is admin/admin

 

Monday, 2 September 2013

Some useful debugging links for Adobe CQ5 developer

1.  Change the different mode in CQ (Edit,Preview,Design,Publish)

     Ans: URL?wcmmode=(edit|preview|design|disabled)

2.  Remove the content finder from the loading

     Ans: remove /cf#/ from the URL

3.  You can't edit the component because of overlapping parsys you want edit the component

    Ans: URL?debug=layout

4.  Do You want to debug the HTML, CSS and JavaScript in Adobe CQ5

    Ans: URL?debugConsole=true

5.  For debugging purpose you want to include CSS and JS files as separate files(not a single clientlib.js or          clientlib.css file) in Adobe CQ5

    Ans: URL?debugClientLibs=true 

6.  do you want to display all clientlib directory inside Adobe CQ5?

    Ans: http://server/libs/cq/ui/content/dumplibs.html