Tagged with using

CQ Developer Tricks

While working with Adobe CQ5 every now and then you discover some new tricks or options, here the list that I use daily:

Remove #cf/
Don’t want to see/wait for the content-finder while refereshing pages, just remove #cf/ in your url.


Creating a Column Control in Adobe CQ

Column Controls in Adobe CQ allow authors to easily create and configure column-based layouts.  This guide shows advanced users and developers how to create and configure a column control.

Step 1: Add a Parsys to a Component JSP
Include a Paragraph System into the page’s component JSP.  You can use any node name for the path, the resource type is ‘foundation/components/parsys’
<cq:includepath=”par”resourceType=”foundation/components/parsys “/>
Step 2: Configure the Paragraph System
To add a Column Control to the Paragraph System, you will first need to update the design.  Select design mode on the sidekick.

Selecting Design Mode
Design mode allows you to configure the Paragraph System for all pages with the same template.  Once the page has reloaded, select Edit next to ‘Design of {NODE}’

Selecting Column Control Component
Look down through the list of available …

Using XMLBeans in Adobe CQ

Apache XMLBeans is a powerful tool for reading, writing and updating XML files.  XMLBeans dynamically creates Java classes based on an XSD Schema.  This makes it powerful and easy to use, however can make it more complicated to integrate into OSGi based applications, such as Adobe CQ, as the XML Element to Java Class mapping uses the Java Classloader.
This guide shows you how to integrate XMLBeans in your Adobe CQ application.

Step 1: Install XMLBeans Bundle
Download and install org.apache.servicemix.bundles.xmlbeans-2.4.0_5.jar.  This JAR was created by the Apache ServiceMix project to wrap XMLBeans in a OSGi Bundle.  The easiest way to automatically deploy the jar into Adobe CQ is to include it in the install folder of your application.  You can also use the Felix console to deploy …

CQ Project Planning: Development Strategy

Several questions come up to me consistently while I move from client to client as a technical PM or solution architect. I felt compelled to list my responses to these questions so that you ask yourself the same questions every time you approach a new CQ5 project. MY response questions often lead to longer brainstorming sessions. Here are a few situations.


Initial Topic:

What gets “componentized” versus consumed, integrated or remain separated with regard to CQ5?

My Response:

How reusable is this functionality?
What is the current life-cycle of this development? How frequently is it changed?
How modular does this need to be?
Will this functionality be replaced by another CQ effort running in parallel?
Do authors need to interact with it and set parameters and variables that customize it for that given …

Creating OSGi bundles for the Adobe Digital Marketing Suite using CRXDE

You can create an OSGi bundle that can be used within the Adobe Digital Marketing Suite by using CDXDE. An OSGi bundle is essentially a Java module that contains application logic that meets your business requirements. An OSGi bundle lets you dynamical…

Unit Testing in Adobe/Day/CQ5

There are a two approaches to effectively test your code in CQ5 – either outside of CQ5 using standard unit tests instantiated from your build tool (i.e. maven). While this approach will cover most simple functionality, the need will quickly arise to execute unit tests within CQ5/Sling/OSGi. Testing outside of CQ5 In addition to your […]

Disk space growing on the CQ author server?

If the disk space on the CQ5 author server is growing at 1-2GBs per day, then check on the filesystem, to see where the growth is at.

If you find that the “journal” directory is GigaBytes then check out this article : http://dev.day.com/content/kb/hom…

Reverse Replication woes – solved

Hot off the press/keyboard (i.e. not fully tested). With the help of an Adobe support engineer in Basel and an on-site Adobe consultant we discovered what the root cause of the reverse replication problem was.Namely, that when a user voted in a poll, …

Integrating the JQuery Framework into DAY CQ

You can integrate the JQuery Framework into DAY CQ (5.4) thereby enabling you to build components that take advantage of the JQuery framework. The JQuery framework is a popular JavaScript library that simplifies the creation of powerful components. For…

Escaping xpath queries

node name in xpath query cannot start with numbers:

So, use org.apache.jackrabbit.util.ISO9075 as shown in:

Example xpath servlet (/apps/sandbox/xpath…

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.
Terms of Use | Privacy Policy and Cookies (Updated)