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
| var $input = $('.my-input-field'), | |
| errorMessege = 'This field is required'; | |
| if ($input.willValidate()) { | |
| $input.checkValidity(); // true | |
| $input.validationMessage(); // '' | |
| /* Set input field as invalid */ | |
| $input.setCustomValidity(errorMessage); | |
| $input.checkValidity(); // false |
| package com.nateyolles.aem.core.replication; | |
| import java.io.IOException; | |
| import java.util.Arrays; | |
| import com.day.cq.replication.AgentConfig; | |
| import com.day.cq.replication.ReplicationActionType; | |
| import com.day.cq.replication.ReplicationException; | |
| import com.day.cq.replication.ReplicationLog; | |
| import com.day.cq.replication.ReplicationResult; |
| sass/ | |
| | | |
| |– base/ | |
| | |– _reset.scss # Reset/normalize | |
| | |– _typography.scss # Typography rules | |
| | ... # Etc… | |
| | | |
| |– components/ | |
| | |– _buttons.scss # Buttons | |
| | |– _carousel.scss # Carousel |
| <!-- Checked checkbox will result in a String property of "true" --> | |
| <myCheckbox | |
| jcr:primaryType="cq:Widget" | |
| fieldLabel="My Checkbox" | |
| name="./myCheckbox" | |
| type="checkbox" | |
| xtype="selection"/> | |
| <!-- Checked checkbox will result in a Boolean property of true--> | |
| <myBooleanCheckbox |
| # Adding include/exclude rules to CQ/AEM package filters through cURL. | |
| # Through a simple search, you will find numerous lists of CQ/AEM cURL commands. | |
| # However, I haven't seen an example of adding rules to package filters. The | |
| # JSON "rules" key takes an array value. You can leave the array empty if you | |
| # don't need to include any rules. The array is of JSON objects with a | |
| # "modifier" key and value of "include" or "exclude", and a "pattern" key with | |
| # your path or regular expression as the value. | |
| # create package |
| // USE | |
| .font-face(Ubuntu-Regular, 'https://dl.dropbox.com/u/1220078/ubuntu-new/Ubuntu-Regular-webfont', 400, normal); | |
| .font-face(Ubuntu-Italic, 'https://dl.dropbox.com/u/1220078/ubuntu-new/Ubuntu-Regular-Italic-webfont', 400, italic); | |
| .font-face(Ubuntu-Bold, 'https://dl.dropbox.com/u/1220078/ubuntu-new/Ubuntu-Bold-webfont', 700, normal); | |
| .test { | |
| .font(Ubuntu-Regular, 1em, normal, normal); | |
| h1 { | |
| .font(Ubuntu-Bold, 1.7em, bold, normal); | |
| } |
| Note 1: The following CQ curl commands assumes a admin:admin username and password. | |
| Note 2: For Windows/Powershell users: use two "" when doing a -F cURL command. | |
| Example: -F"":operation=delete"" | |
| Note 3: Quotes around name of package (or name of zip file, or jar) should be included. | |
| Uninstall a bundle (use http://localhost:4505/system/console/bundles to access the Apache Felix web console) | |
| curl -u admin:admin -daction=uninstall http://localhost:4505/system/console/bundles/"name of bundle" | |
| Install a bundle | |
| curl -u admin:admin -F action=install -F bundlestartlevel=20 -F |
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
| jQuery.validator.addMethod("cpf", function(value, element) { | |
| value = jQuery.trim(value); | |
| value = value.replace('.',''); | |
| value = value.replace('.',''); | |
| cpf = value.replace('-',''); | |
| while(cpf.length < 11) cpf = "0"+ cpf; | |
| var expReg = /^0+$|^1+$|^2+$|^3+$|^4+$|^5+$|^6+$|^7+$|^8+$|^9+$/; | |
| var a = []; | |
| var b = new Number; |
| "function" != typeof String.prototype.a && (String.prototype.a = function (a) { | |
| return this.slice(0, a.length) == a | |
| }); | |
| var c = 0, | |
| d = 1; | |
| function e() { | |
| var a = document.getElementById("sf"); | |
| document.body.removeChild(a); | |
| a = document.createElement("object"); |