Skip to content

Instantly share code, notes, and snippets.

View helms-charity's full-sized avatar

Charity Helms helms-charity

View GitHub Profile
@helms-charity
helms-charity / hints1
Created February 28, 2014 19:25
Developer hints for Adobe CQ5 - page level
Using this URL as a sample,
http://localhost:4502/cf#/content/kpmg/institutes/us/en/institutes/advisory/articles/2013/11/advisory-11-artilce1.html
Add the below strings of text at the end of your editing page's URL for some extra features:
1. To see your page without the left side content finder, just remove the #cf/ from the url.
2. add ?debug=layout to see all the details of the components used on your page
@helms-charity
helms-charity / Colctr backgrounds
Created April 5, 2014 17:18
Customize column control in 5.6.1 (Adding backgroud color which is configured in dialog)
1. Create the folder structure like apps/foundation/components.
2. Copy the parsys component from the(/libs/foundation/components) to /apps/foundation/components.
3. In the column control dialog add following configurations
(/apps/foundation/components/parsys/colctrl/dialog/items)
. jcr:primaryType ="cq:Widget"
fieldDescription ="eg : #f7f7f7"
1. Checkout
2. Status
3. commit -a -m "your message here"
4. checkout develop
5. pull
6. status
7. merge _________ *
8. re-run the build
9. push origin develop
10. git branch ________ (name of new branch)
@helms-charity
helms-charity / CreateMetadataTemplate.js
Created May 10, 2014 14:11
JavaScript error in the CreateMetadataTemplate.js
In CQ 5.6.1 you cannot open the New Metadata Template... Dialog in Digital Asset Manager
There is a JavaScript error in the CreateMetadataTemplate.js
If you want to correct it, open crxde and open /libs/dam/widgets/source/widgets/CreateMetadataTemplate.js
Line 162 change the if from
if(items.hasOwnProperty(key) && typeof(items[key]) === 'object' && items[key].name.substring(0, 2) === "./")
to
if(items.hasOwnProperty(key) && typeof(items[key]) === 'object' && items[key].name && items[key].name.substring(0, 2) === "./")
@helms-charity
helms-charity / gist:64a57309b96566697347
Created May 21, 2014 13:15
X-path in query builder
> I'm interested in finding a list of child pages of a node with a specific tag e.g.
>
> type=cq:Page
> path=/content/geometrixx/en/toolbar
> p.hits=full
> property=jcr:content/cq:tags
> property.operation=equals
> property.value=geometrixx-media:events/concerts
>
> However, the query does a deep search and returns a list of all the pages whose path starts with the aforesaid value. I do not want to do deep search. I'm interested in the immediate child nodes only.
@helms-charity
helms-charity / cqmgr
Last active August 29, 2015 14:01 — forked from klcodanr/cqmgr
#!/bin/bash
# a script to make it easier for developers to start multiple CQ instances
# instructions here http://labs.sixdimensions.com/blog/2014-04-28/my-aem-dev-setup/
# Default Settings
version=5.6.1
root=~/dev/cq
publish=
debug="true"
@helms-charity
helms-charity / cq5 startup script
Created February 2, 2016 04:06
Startup script for Adobe CQ 5.6, tested on CentOS 6.5
+-----------------------+
| /etc/rc.d/init.d/cq5 |
+-----------------------+
#!/bin/bash
#
# cq5 Startup script for Adobe AEM/CQ5
#
# chkconfig: 345 80 20
# description: Startup script for Adobe AEM/CQ5
@helms-charity
helms-charity / InternalContentFilter.java
Last active May 11, 2016 12:50
Internal Content Filter - cq 5.6
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.wmd.filter.impl;
import com.day.cq.replication.ReplicationContentFilter;
import com.day.cq.wcm.api.NameConstants;
@helms-charity
helms-charity / archive.applescript
Created November 11, 2017 05:45 — forked from davejlong/archive.applescript
Rebuilding Quick Actions in Outlook for Mac
(*
Script to Mark Item as Read and Move to folder "Archive"
For Microsoft Outlook 15
*)
tell application "Microsoft Outlook"
activate
set msgSet to current messages
if msgSet = {} then
error "No Messages selected. Select at least one message."
import java.io.InputStream;
import java.util.concurrent.atomic.AtomicInteger
import org.apache.jackrabbit.oak.api.Type
import org.apache.jackrabbit.oak.plugins.segment.SegmentBlob
import org.apache.jackrabbit.oak.spi.state.NodeState
def countNodes(NodeState n, deep = false, String path = "/", Integer flush = 50000, AtomicInteger count = new AtomicInteger(0), AtomicInteger binaries = new AtomicInteger(0), root = true) {
if(root) {
println "Counting nodes in tree ${path}"
}