New CQ best practice articles now live!

- Samartha Vashishtha, Content and Community Lead @ Adobe

We’ve just published the following three CQ best practice articles:

These articles are the first few in the CQ best practices series. In the days to come, we’ll post more best practices, tips, tricks, and troubleshooting information that you can apply to your work.

Stay tuned!

------------

Read the original post at The Doc Fox.

Integrating custom CQ widgets with third-party libraries

- Scott Macdonald, Senior Content and Community Lead @ Adobe

Have you ever wondered how to create a custom CQ widget that performs tasks not available with out of the box CQ components. In this situation, you can create a CQ widget that uses third-party libraries that lets your CQ application perform custom tasks. For example, assume that you want to create a CQ application that lets you view a specific street by using Google Map APIs.

Perhaps, you want your CQ component to accept latitude and longitude values and then show the results, as shown in the following illustration.

If you are interested in learning how to create CQ components that use third-party libraries, then check out the following article:  http://helpx.adobe.com/adobe-cq/using/integrating-custom-cq-widgets-third-party.html.

-------

Read the original post at Scott's Digital Community.

Basic CQ5 code examples

- Feike Visser, Technical Architect @Adobe

In this blogpost I will go through some sample code that you can use in your components, all samples are available out of the box.

So there is no need to write custom code in OSGi bundles for these samples.

Make sure you have this line at the beginning of your component:

This global.jsp defines a set of global taglibs and makes a number of objects available that you can use via.

—————

Read the complete post at the Experience Delivers blog.

Viewing CQ server logs for a system hosted on Cloud Manager

- Samartha Vashishtha

To understand how you can view logs for a CQ Cloud Manager authoring server, look no further than this useful forum topic.

For more top issues and FAQ related to Adobe CQ Cloud Manager, see this documentation article.

-------

Read the original post at The Doc Fox.

CQ5 – Command Line Admin

- Jochen Toppe

It’s so rare that I post here, it’s almost criminal. While researching how to best automate cloud-based installations of CQ5, I ran across these sweet command line tools to change passwords and setup replication agents. I figured they’d be worth sharin 8-)

They’re right here on github.

---------

Read the original post at Jochen Toppe's blog.

Cloud Manager: How are Pause and Stop operations different?

- Samartha Vashishtha

When you pause a cloud, the cloud provider doesn’t charge for CPU cycles anymore. However, you are still charged for the allocated storage (for example, Amazon EBS volumes). Paused clouds are displayed in the Clouds dashboard with a yellow status.

However, when you stop a cloud, no memory, EBS storage, or instances remain allocated to it anymore. However, online backups for the stopped cloud are still retained and can be restored. The cloud provider continues to charge for the saved online backups. Stopped clouds are displayed in the Clouds dashboard with a red status.

For more FAQ related to Cloud Manager, refer to this documentation topic or consult this forum.

----------

Read the original post at The Doc Fox.

CQ Cloud Manager is here!

- Samartha Vashishtha

Adobe has announced the general availability of CQ Cloud Manager, Software-as-a-Service (SaaS) that enables reduced time and costs for provisioning, managing, and metering Web Experience Management (WEM) solutions supporting digital marketing initiatives. Cloud Manager takes advantage of cloud computing technology, such the Amazon Web Services (AWS) public cloud, to start up CQ clusters quickly and consistently.

Using CQ Cloud Manager, Digital Marketing organizations can provision and deploy instances of their Web environment without having to procure hardware or pay large upfront costs. This ease of provisioning allows enterprises to rapidly engage customers, drive market shares, and focus on innovation.

The infographic below captures the overall CQ Cloud Manager framework:

 

To know more about Cloud Manager or to learn how to use it, refer to the documentation.

------------

Read the original post at The Doc Fox.

Using JSONWriter objects to display Adobe CQ OSGi data

- Scott Macdonald

You can create an org.apache.sling.commons.json.io.JSONWriter instance to invoke Adobe CQ OSGi bundle operations and display data within a JSP. A JSONWriter instance lets you define value and key methods to retrieve data. You can create an Adobe CQ component that uses a JSONWriter instance to submit data to an OSGi bundle operation and get back the results. You can then display the results in a JSP. That is, you can dynamically display data based on user input.

For example, consider the OSGi bundle that uses web services to return weather information. (For information about this OSGi bundle, see  http://scottsdigitalcommunity.blogspot.ca/2012/05/creating-adobe-cq-bundles-that-consume.html.

Note: The OSGi bundle that returns weather data uses web services to expose various operations that return weather data. To follow along with this development article, you must create the weather OSGi bundle by following that article.

....

----------

Read the complete post at Scott's Digital Community.

Logging Activates, Deactivates and Deletes

- Sensei Martin

To keep a log of who has activated or deactivated a page, add this to your logging :-

Log Level: Debug

Logger: com.day.cq.replication.impl.queue.ReplicationJob

........

---------------

Read the complete post at My Day CQ Blog.

Creating an Adobe CQ web application that uses MySQL

- Scott Macdonald

You can create an Adobe CQ web application that performs database operations on a relational database. For example, you can create an Adobe CQ web application that retrieves data from MySQL and displays the data in a JSP. The following illustration shows data being retrieved from a relational database and displayed in a JSP.

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 dynamically load, unload, configure, and control the Java module without restarting the server. CRXDE is the IDE that lets you develop applications for Adobe CQ (part of the Adobe Digital Marketing Suite).

The OSGi component that is created in this development article contains Java JDBC application logic that retrieves data from MySQL. (This OSGi component corresponds to the JDBC Java code shown in the previous illustration.) To keep this article simple, the MySQL database is named bank and contains a single table named user. The user table contains two fields named id and name. This development article guides you through how to create an Adobe CQ application that displays data located in the user table in a JSP.

------------

Read the complete blog post at Scott's Digital Community.