Quantcast
Channel: CQ 5
Browsing latest articles
Browse All 35 View Live

[CQ ADMIN] Overriding the default damadmin or siteadmin pages in CQ5

Overriding the default damadmin or siteadmin pages in CQ5Overriding foundation content in CQ5 was made fairly easy by our friends on the Adobe CQ team.  In the vastmajority of cases, we can just...

View Article



Image may be NSFW.
Clik here to view.

[COMPONENT] Maintaining Visibility of CQ Editables (Overwrite Editbar)

Maintaining Visibility of CQ EditablesContent elements such as multi-tab content controls and collapsible content sections are prevalent on modern websites.  In an Adobe CQ5 authoring environment, a...

View Article

[PERFORMANCE] Adobe WEM/CQ performance tuning

Adobe WEM/CQ performance tuningContentsCaching-related configurationsCRX Bundle cacheCRX Search index handler (Lucene) cacheTar PM index cacheScalabilityMaintenanceOptimizing Tar Files (for Tar...

View Article

Image may be NSFW.
Clik here to view.

[WCM] AEM CQ 561 - Add a button to Sidekick Bottom Toolbar

ProblemAdd a button for viewing the page in wcmmode disabled. Here, on clicking the button added to sidekick bottom toolbar (beside Edit button), allows the user to view page in wcm disabled...

View Article

[MAVEN] Using Maven to Create and Install CQ5 Package

Creating components using CRXDE and CRXDE Lite can be frustrating. Both are buggy and are different environments than what you are use to working with. You can use Maven to create a package that it can...

View Article


[COMPILE] CQ doen't compile JSP after we modify in CRX / compiled jsp files

Problem:CQ doen't compile JSP after we modify in CRX.Solution:We have experienced similiar issues when deploying code with packages. We solved the caching issue by doing the following:1. Deleted...

View Article

Image may be NSFW.
Clik here to view.

[CQ Embedded Form] Route to different pages after submit on CQ embedded form

IssueIn CQ you have the form functionality available that allows you to create a form on a page, for each form you can specify a “thank you” page that will be displayed when the form is submitted.In...

View Article

[CQ Embedded Form] Add an approach for server side validation in Cq5 to use...

IssueWhile working with cq5 forms you would need to do some validations at server side end. These validations can be very generic like character only validation or may be complex business scenarios....

View Article


Image may be NSFW.
Clik here to view.

[CQ6-SYSTEM] MAINTAINING THE REPOSITORY - Reduce repository size

Compacting Tar FilesAs data is never overwritten in a tar file, the disk usage increases even when only updating existing data. To make up for the growing size of the repository, AEM employs a garbage...

View Article


[DATABASE] USE DATASOURCEPOOL WITHIN OSGI BUNDLE TO CONNECT MYSQL

Goal:Create a CQ/AEM project to connect mysql by Create project:mvn archetype:generate \   -DarchetypeRepository=http://repo.adobe.com/nexus/content/groups/public/ \...

View Article

[COMPONENT] Set a CQ5 component to editable or not editable

Question:Is it posible if i want to set a cq5 component C editable in page A, but not editable in page B.Solution:You can set ComponentContext.BYPASS_COMPONENT_HANDLING_ON_INCLUDE_ATTRIBUTE before the...

View Article

Image may be NSFW.
Clik here to view.

[COMPONENT] CQ filter

Sling Request Invocation Chain  Implementing Sling FiltersRegistration of FiltersStandard Servlet Filter (javax.servlet.Filter)Need to be registered as Service („manually“ or SlingFilter SCR...

View Article

Image may be NSFW.
Clik here to view.

[WIDGET] Multifield - Create a multi-fields panel to use with multifield

Layout:Config on dialog:<map                       jcr:primaryType="cq:Widget"                       fieldLabel="Field label"                       hideLabel="false"...

View Article


[DIALOG] Active a tab of dialog

How to activate/inactivate a tab on a dialog base on an event of item?Resolution:In the sample code, we add a listener to listen ‘activate’ event for dialog.<listeners...

View Article

Install Oracle Jdbc driver in your Maven local repository

If you are using Oracle, you must first install your Oracle JDBC driver in your local Maven repository.Here is how to proceed:Step 1 - Download the Oracle JDBC driverPlease download manually the Oracle...

View Article


Image may be NSFW.
Clik here to view.

[SYSTEM] Get administrator session in service

Goal: To write data/nodes to content (specifically to /etc/userdata) when a user logs in.We can achieve this in 2 ways (either way, the user needs to be a 'system user')Process 1:Step 1: Use in-built...

View Article

[AEM] hide parsys on live copy page

Purpose: I want to hide the parsys in the live copy pageSolution:Add this script below the code include parsys<cq:include path="par"resourceType="foundation/components/parsys"/><c:if...

View Article


[AEM] Setting Up a Dispatcher on OS X

Setting Up a Dispatcher on OS XPurpose: This guild is to show you how to set up a dispatcher on OS X step by stepPrepare:1.         OS X machine with Apache installed and enabled2.         Start AEM...

View Article

[CRX] Accessing CRX Remotely using Jcr Remoting Based On Webdav (DavEx)

Goal: To access CRX remotely in a client java program, JCR Remoting (DavEx). This post is on using JCR Remoting (aka WebDav remoting,...

View Article

[CQ/AEM] SegmentNotFoundException

Issue:When we see the error "org.apache.jackrabbit.oak.plugins.segment.SegmentNotFoundException: Segment 6e0a804f-0d75-48a8-a579-ebf34e58e763 not found" one day, and you can not open any pages, or can...

View Article

Config tomcat

Goal: Configure to load tomcat on startup on MAC SierreWrite launchd_tomcat_wrapper.sh#!/bin/bashfunction shutdown(){        date        echo "Shutting down Tomcat"...

View Article


[USER] disable user

How to disable AEM user?Disable:curl -u user:pass -F "disableUser=Not required" http://localhost:4502/home/users/path/to/user.rw.htmlEnable:curl -u  user:pass -F "disableUser="...

View Article


[Repository] Useful Oak oak-run Commands

Start a Java UI to explore the AEM Repository and determine which tar file contains which piece of contentjava -Xmx4g -jar oak-run-1.6.0.jar explore --segment=true...

View Article

[Query Builder] Advanced Search

Using the Advanced SearchWhen using a list, select from the 'Build list using' options 'Advanced Search.' This will open a new tab in the list window with one text box labeled: 'Querybuilder Predicate...

View Article

Upgrade to AEM 6.5

Error:[ERROR] /Users/mukmayu/All_Documents/Project_Official/Manulife_CEA/Code_Workspaces/AEMCodeAll/aem-global/core/src/main/java/ca/manulifeglobal/core/util/AssetAccessUtils.java:[99,7] cannot access...

View Article

Browsing latest articles
Browse All 35 View Live




Latest Images