Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block dfparker2002

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

AEM 6.2 Authoring Editor to Site messaging API


 * @param group {String} group identifier name
 * @param [targetWindow=window.parent]
 * @param [origin='*']
 * @constructor
dfparker2002 /
Created Jun 6, 2019 — forked from kevinweber/
Collection of AEM Links, Commands & Tips / Cheat Sheet

Web Consoles & Tools

dfparker2002 /
Created Jun 6, 2019 — forked from knennigtri/
Useful JCR Locations for AEM Templates and components
dfparker2002 / examples.sql2
Created Jun 6, 2019 — forked from frieder/examples.sql2
JCR-SQL2 examples (AEM6)
View examples.sql2
Find all videos below a specific DAM path
SELECT * FROM [dam:Asset] AS asset
WHERE ISDESCENDANTNODE(asset, '/content/dam')
AND asset.[jcr:content/metadata/dc:format] LIKE 'video/%'
Find all pages with a specific template and an alias
dfparker2002 / table-summary-rte.js
Created Jun 6, 2019 — forked from rogerblanton/table-summary-rte.js
A sample of how to modify an existing RTE Plugin
View table-summary-rte.js
(function ($) {
"use strict";
var _ = window._,
Class = window.Class,
CUI = window.CUI,
EAEM_TABLE = null,
COLUMN_CONTAINER = ".coral-RichText-dialog-columnContainer",
SUMMARY_SEL = ".coral-RichText-dialog--tableprops textarea[data-type=\"summary\"]",
SUMMARY_HTML = '<div class="coral-RichText-dialog-columnContainer">'
dfparker2002 / smartrestize.js
Created Jun 6, 2019 — forked from rogerblanton/smartrestize.js
Taken from Paul Irish taken from John Hann
View smartrestize.js
// debouncing function from John Hann
var debounce = function (func, threshold, execAsap) {
var timeout;
return function debounced () {
var obj = this, args = arguments;
function delayed () {
public static void visitRecursively(Node node, Session currentSession) {
NodeIterator list = node.getNodes();
while(list.hasNext()) {
Node childNode = list.nextNode();
// Verify child node for cqPage type
if((childNode.hasProperty("jcr:primaryType")) && (childNode.getProperty("jcr:primaryType").getValue().getString()).equals("cq:Page") ){
~ Copyright 2017 Adobe Systems Incorporated
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~ Unless required by applicable law or agreed to in writing, software
dfparker2002 /
Created May 14, 2019 — forked from nateyolles/
Custom ClientLibUseObject Java-Use POJO to create custom HTML markup
package apps.clientlib_async.sightly.templates;
import java.util.Collection;
import java.util.List;
import java.util.ArrayList;
import javax.script.Bindings;
dfparker2002 / component.html
Created May 14, 2019 — forked from kevinweber/component.html
HTL/Sightly: "Use and call template" pattern. Put template into separate file for reusability, and pass parameters when calling it. Note that in most cases it's not necessary to pass "properties" to the template because they work even if they're not passed explicitly.
View component.html
<sly data-sly-use.component="template.html"
data-sly-call="${component.template @ properties=properties}" />
You can’t perform that action at this time.