SQL2
All nodes with a specific name
SELECT * FROM [nt:unstructured] AS node
WHERE ISDESCENDANTNODE(node, "/search/in/path")
AND NAME() = "nodeName"
All pages below content path
SQL2
All nodes with a specific name
SELECT * FROM [nt:unstructured] AS node
WHERE ISDESCENDANTNODE(node, "/search/in/path")
AND NAME() = "nodeName"
All pages below content path
import org.apache.felix.scr.annotations.Component; | |
import org.apache.felix.scr.annotations.Property; | |
import org.apache.felix.scr.annotations.Service; | |
import org.apache.sling.event.jobs.JobProcessor; | |
import org.osgi.service.event.Event; | |
import org.osgi.service.event.EventHandler; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import com.day.cq.replication.ReplicationAction; | |
import com.day.cq.replication.ReplicationActionType; |
var NamespaceName = NamespaceName || {}; | |
NamespaceName.ModuleName = function () { | |
var aPublicProperty = "foo"; | |
var aPrivateProperty = "bar"; | |
var init = function () { | |
// some code here ... | |
}; |
// Can be called in (for example) a dialog by appending to a listener like "selectionchanged" (for a checkbox). | |
function (checkbox) { switchMandatoryFields(checkbox); } | |
// Enables or disables the "mandatory" property of the defined fields. | |
switchMandatoryFields = function(checkbox) { | |
"use strict"; | |
var checkboxIsChecked = checkbox.optionItems.items[0].checked, | |
parentPanel = checkbox.findParentByType("tabpanel"), | |
firstTextfield = parentPanel.find("name", "./nameOfFirstTextfield")[0], | |
secondTextfield = parentPanel.find("name", "./nameOfSecondTextfield")[0]; |
<?xml version="1.0" encoding="UTF-8"?> | |
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | |
jcr:primaryType="cq:Widget" fieldLabel="Text" name="./text" xtype="richtext"> | |
<linkbrowseConfig jcr:primaryType="nt:unstructured" | |
cssExternal="CQRTE__extlink" cssInternal="CQRTE__intlink"/> | |
<rtePlugins jcr:primaryType="nt:unstructured"> | |
<edit jcr:primaryType="nt:unstructured" | |
features="[cut,copy,paste-plaintext,paste-wordhtml]" defaultPasteMode="plaintext"/> | |
<justify jcr:primaryType="nt:unstructured" | |
features=""/> |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: bitbucket | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Initscript for Atlassian Bitbucket Server | |
# Description: Automatically start Atlassian Bitbucket Server when the system starts up. |
getRequest(url: string): Promise<any> { | |
return new Promise<any>( | |
function (resolve, reject) { | |
const request = new XMLHttpRequest(); | |
request.onload = function () { | |
if (this.status === 200) { | |
resolve(this.response); | |
} else { | |
reject(new Error(this.statusText)); | |
} |
[Nemo Action] | |
############################################# | |
#### DEBUGGING: | |
#### | |
#### Run Nemo with the environment | |
#### variable NEMO_ACTION_VERBOSE | |
#### set to get useful log output | |
#### for debugging your actions | |
#### |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import socket | |
import struct | |
import sys | |
import os | |
import time | |
# changed (2019-07-03) | |
import subprocess |