Skip to content

Instantly share code, notes, and snippets.

@dlh3
dlh3 / README.md
Last active December 18, 2018 12:52
CQ5 (AEM) optionsProvider from MultiFieldPanel

CQ5 (AEM): Dialog optionsProvider to read options from MultiFieldPanel

Use Case

As an AEM Administrative User, I wish to use a dialog to define the options for a select in a different dialog.

How it works

MultiFieldPanel

The MultiFieldPanel widget, provided by ACS-Commons (since 1.5.0) is used to configure the options. Fields should be text, value, and qtip; value is required.

optionsProvider

@danharper
danharper / background.js
Last active March 30, 2024 18:25
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});