|
Mobile
Mobile channels gained considerable importance in the last few years, mainly driven by the success of the iPhone. With CQ you can manage websites for mobiles devices, view a mobile page in a way that emulates a mobile device or switch between several views.
CQ enables you to author webpages with an iPad. You can open a page on your iPad with the embedded Safari browser, move paragraphs around, add pictures, change paragraph titles and once done with editing you can publish the page.
The CQ5 GO is an iPhone/iPad application available through the App Store that lets you manage your CQ workflow inbox on the iPhone or on the iPad. With CQ5 GO you can configure several inboxes accessing several CQ instances. Once the inbox is configured, you can manage the items that are in your inbox: you can navigate between items, add a comment and complete a step, step back, delegate the item to a co-worker or view the payload.
Managing Websites for Mobile Devices
It is increasingly important that websites offer specific “views” for mobile devices, where these “views” typically are separate sites that share some content with the “normal” website. CQ assists you in creating mobile websites: when authoring a mobile page, the page is displayed in a way that emulates the mobile device, called an emulator. When authoring the page, you can switch between several emulators to get a real view of what the end-user will see when accessing the page.
In the out-of-the-box version, devices have been grouped into three categories - feature, smart and touch - according to the capabilities of the devices to render a page . CQ allows you to create new device groups. When the end-user accesses a mobile page, CQ detects the device and sends the representation that corresponds to its device group.
CQ enables you to create a mobile site based on an existing standard site. It can be simply achieved by creating a livecopy of the standard site.
When authoring a mobile page, the page is displayed in a way that emulates the mobile device, called an emulator. When authoring the page, you can switch between several emulators to get a real view of what the end-user will see when accessing the page.
To author a mobile page:
- In your browser, go to the Siteadmin console.
- Open the Products page below Websites >> Geometrixx Mobile Demo Site >> English.
- Switch to a different emulator. To do so, you can either:
- Click the device icon at the top of the page.
- Click the Edit button in the Sidekick and select the device in the drop-down menu.
- Drag and drop the Text & Image component from the Mobile tab of the Sidekick to the page.
- Edit the component and add some text. Click OK to save the changes.
The page looks the same as the following:
Note
The emulators are disabled when a page on the author instance is requested from a mobile device. Authoring can then be done by using the touch library.
With CQ it is possible to author webpages with an iPad. You can open a page on your iPad with the embedded Safari browser, view the page in preview mode, annotate-copy-cut-paste-annotate paragraphs, add pictures, activate the page, edit the page properties, start and complete a workflow.
Opening a Page with the iPad
To open a page:
- On your iPad, open Safari, the embedded browser.
- Enter the url of the page, eg:
http://<hostname>:4502/content/geometrixx-outdoors/en.html
and tap Go on the keyboard.
- The login page opens: enter your login credentials and tap OK.
- The page is displayed.
To view the page in preview mode, tap Preview in the top toolbar: the page is displayed as it will appear on the publish instance and cannot be edited. Tap Preview to go back in edit mode.
The page is displayed as follows:
Moving a Paragraph with the iPad
-
Tap the paragraph that needs to be moved. The paragraph is highlighted and a context menu is displayed:
Tap Cut in the context menu.
In the page, tap the paragraph above which the moved paragraph will be inserted. The paragraph is highlighted and a context menu is displayed.
Tap Paste in the context menu: the paragraph is moved.
Adding a Picture with the iPad
-
Tap Assets in the toolbar at the top of the page. A dialog showing a collection of images opens.
Select a picture from the dialog. All the pictures on the page are highlighted.
In the page, tap the image that you wish to replace. The new image is displayed on the page.
Activating a Page with the iPad
-
Tap Page actions in the toolbar at the top of the page. A dialog showing the page actions opens.
Tap Activate in the Page actions dialog. An alert is displayed informing you about the status of the activation.
Editing the Page Properties with the iPad
To edit the page properties:
- Open the page.
- Tap Page actions in the toolbar at the top of the page. A dialog showing the page actions opens.
- Tap Properties in the Page actions dialog.
- Edit the page properties.
- Either:
- Tap Back to go back to the page without saving the changes.
- Tap Save in the dialog or tap Go on the keyboard to save the changes and to go back to the page.
The page properties dialog looks as follows:
Starting a Workflow with the iPad
To start a workflow on a page:
- Open the page.
- Tap Page actions in the toolbar at the top of the page. A dialog showing the page actions opens.
- Tap Workflow in the Page actions dialog.
- In the workflow dialog:
- Select the workflow in the drop-down menu.
- Set the title (optional).
- Set a comment (optional).
- Tap Start Workflow to start the workflow and to go back to the page.
The workflow dialog looks as follows:
Completing a Workflow Step with the iPad
To complete a workflow step on a page:
- Open the page that is in a running workflow.
- Tap Page actions in the toolbar at the top of the page. A dialog showing the page actions opens.
- Tap Workflow in the Page actions dialog.
- In the workflow dialog:
- Select the current step in the drop-down menu.
- Either:
- Tap Complete to complete the step and to go back to the page.
- Tap Step Back to set the workflow back to the previous step.
The workflow dialog looks as follows:
Managing the CQ Workflow Inbox on the iPhone/iPad
The CQ5 GO app lets you manage your CQ workflow inbox on the iPhone or on the iPad. With CQ5 GO you can configure several inboxes accessing several CQ instances. Once the inbox is configured, you can manage the items that are in your inbox: you can navigate between items, add a comment and complete a step, step back, delegate the item to a co-worker or view the payload.
For a complete overview on how to manage workflows with CQ, please refer to the Working with Workflows page.
Note
This page describes how to install and use the app on the iPhone. The same functionalities are also available on the iPad.
Installing the CQ5 GO App on the iPhone
On the iPhone, install the CQ5 GO app through the App Store. The app icon looks as follows:
Tap the icon to open the app. The CQ5 GO Home screen looks as follows:
The following functionalities are available on the Home screen:
Edit button
|
- to change the order of the inboxes
- to delete an inbox
|
+ button
|
- to add an inbox |
| Inbox middle field(s) |
- to configure the inbox(es) |
| Home icon |
- to access the Home screen |
| Inbox icon |
- to access the inbox |
| Info icon |
- to access the Copyright, Licences and Disclaimers |
Setting up a Workflow Inbox on the iPhone
To set up a new workflow inbox:
- On the iPhone, open the CQ5 GO app.
- Tap the + button.
- Enter the following information:
- Title: e.g. My WF Inbox
- Description: e.g. testing
- URL: the url of the CQ instance, e.g. http://10.0.0.50:4502
- Username: your CQ username, e.g. admin
- Password: your CQ password, e.g. admin
- (optional) To disable the inbox, switch Active to OFF.
- (optional) To test the connection, tap the Test the connection field.
- Tap Save to save the settings.
The Home screen looks then as follows:
Managing the Workflow Inbox on the iPhone
This section explains how to manage on the iPhone the items that are in your workflow inbox. It is possible to complete a step, to step back, to delegate the item to a different user or to view the payload.
Note: if you need to generate workflow items in your inbox for testing purposes, please refer to the Working with Workflows page.
Managing an Item in the Workflow Inbox
- On the iPhone, open the CQ5 GO app.
- Tap the inbox icon in the bottom toolbar that you wish to manage.
- Tap the refresh button (bottom left corner) to request the updated list of items from the CQ server: the list of the items is displayed.
- Tap the item that needs to be processed. All the informations related to the item are displayed.
The following functionalities are available:
- Back button: to go back to the former screen.
- Up and Down arrows: to navigate between the items.
- Right arrow: to complete the item.
- Left arrow: to step back the item.
- People icon: to delegate the item.
- Clipboard icon: to view the payload associated with the item.
The screen with all the details about an item looks as follows:

Completing a Step
The following procedure shows how to complete a step on the iPhone. The procedure is very similar for stepping back an item, delegating an item or viewing the payload.
- Select the item in the inbox (see the procedure above).
- Tap the right arrow in the bottom toolbar.
- To change the next step:
- Tap the Next Step field.
- Choose the step.
- Tap Back.
- To add a comment:
- Tap the Comment field.
- Tap the input field and enter a comment.
- Tap Done.
- Tap Back.
- When you are done with selecting the step and writing a comment, tap Submit (top right corner).
The CQ5 GO iPhone app can be modified without having to submit the changes to the App Store. The app basically consists of two parts: an Apple native part that is registered with Apple and available on the App Store and a web application part. The web application part is located on the CQ server and is downloaded and stored in the device's filesystem. Once the app is installed on the iPhone, it behaves like a browser making requests to the CQ server and processing the CQ server responses.
The process of modifying the web application part of the iPhone app is as follows:
- Modifying the web application part of the CQ5 GO app on the CQ instance: it mainly consists of adapting the JSP and JavaScript files.
- Updating the cache of the CQ5 GO app on the CQ instance. This update generates a timestamp that will be used to generate a zip file with the updated web application content.
The next time the iPhone user starts the CQ5 GO app or changes the settings of the app:
- The CQ server checks if the web application content has been updated since the last update.
- It generates a zip file with the updated web application content and stores it under /var/contentsync/libs/cq/workflow/content.
- It sends the zip file to the iPhone.
- The iPhone saves the zip file on its filesystem, unpacks it and displays the changes.
In the following sections two examples show how to modify some elements of the CQ5 GO app. The first example shows how to modify the title displayed on the inbox screen of the iPhone. The second example shows how to add a field with the payload type to the workflow item screen.
Modifying the Title of the Inbox Screen
This example shows how to modify the title displayed on the inbox screen of the iPhone:
- In your browser, open CRXDE Lite.
- Open the file:
/libs/cq/workflow/components/mobileinbox/iphone.html.jsp
which is the base for rendering the workflow inbox pages on the iPhone.
- In the JSP change the title Inbox to My Inbox by replacing the line of code:
<h1>Inbox</h1>
with:
<h1>My Inbox</h1>
- Save the changes.
- Update the content cache of the app on the CQ instance:
- In your browser, go to:
http://localhost:4502/libs/cq/contentsync/content/console.html
- Click the Update link beside the path:
/libs/cq/workflow/content/mobileinboxcontent
- On the iPhone, close the CQ5 GO app and re-open it.
- Open the workflow inbox. The screen looks as follows:

Adding the Payload Type to the Item Screen
This example shows how to add a field with the payload type to the workflow item screen:
- In your browser, open CRXDE Lite.
- Open the JavaScript file:
/libs/cq/workflow/mobile/source/mobile/mobile.js
- In mobile.js, below the following lines of code:
var title = data[i].payloadTitle || data[i].payloadPath;
contentHtml += "<div class='cq-payload-title'>" + title + "</div>";
if(data[i].payloadSummary.description) {
contentHtml += "<div class='cq-payload-description'>" + data[i].payloadSummary.description + "</div>";
}
add the line:
contentHtml += this.createListItem("Payload Type", data[i].payloadType);
- Save the changes.
- Update the content cache of the app on the CQ instance:
- In your browser, go to:
http://localhost:4502/libs/cq/contentsync/content/console.html
- Click the Update link beside the path:
/libs/cq/workflow/content/mobileinboxcontent.
- On the iPhone, close the CQ5 GO app and re-open it.
- Open a workflow item to view the change. The screen looks as follows:

|
|
Can I use this emulator as plug & play tool. we have developed MS dotnet based web application for mobile. so, we would like to unit test of mobile sties using emulator. Is it possible to test in CQ5. if possible, what is the scenarios should i follow.
Thanks
Mani
Note: Customers with DayCare user accounts need to create a new account for use on day.com.