This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Maven archetype that will create an AEM 6.0 ready project | |
# Might need to change permissions in order to run | |
# If all else fails, copy and paste everything below this line into the terminal | |
mvn archetype:generate \ | |
-DarchetypeRepository=https://repo.adobe.com/nexus/content/groups/public/ \ | |
-DarchetypeGroupId=com.adobe.granite.archetypes \ | |
-DarchetypeArtifactId=aem-project-archetype \ | |
-DarchetypeVersion=10 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################### | |
# Intellij | |
###################### | |
.idea/ | |
*.iml | |
*.iws | |
###################### | |
# Maven | |
###################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#If you forget where java folders are located you can find them by | |
# typing /usr/libexec/java_home -verbose in the terminal | |
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home | |
#export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home | |
#export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home | |
export M2_HOME=/usr/local/apache-maven/apache-maven-3.2.5 | |
export JETTY_HOME=/Users/sixdimensions/Downloads/jetty-distribution-9.3.3.v20150827 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" | |
xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | |
xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:primaryType="nt:unstructured" | |
jcr:title="Compare Products Services" sling:resourceType="cq/gui/components/authoring/dialog" | |
mode="edit" helpPath="style-guide.html#compare-rows-services"> | |
<content | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/foundation/container"> | |
<layout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---Reactor pom (add dependencies) | |
<dependency> | |
<groupId>com.adobe.acs</groupId> | |
<artifactId>acs-aem-commons-content</artifactId> | |
<version>3.2.4</version> | |
<type>content-package</type> | |
<classifier>min</classifier> | |
</dependency> | |
<dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rows jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/foundation/form/multifield" | |
class="full-width" fieldLabel="Rows"> | |
<field jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/foundation/form/fieldset" | |
acs-commons-nested="JSON_STORE" jcr:title="Row" | |
name="./compareRows"> | |
<layout jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns" | |
method="absolute" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- checkbox --> | |
<checkbox | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/foundation/form/checkbox" | |
fieldDescription="Checking will add a check icon" | |
name="./checkbox" | |
text="Add Checkbox" | |
value="true"/> | |
<!-- simple fieldset no title --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var samplePost = function(url,data){ | |
console.log(data); | |
$.ajax({ | |
url : url, | |
type: "POST", | |
data: data, | |
success: function (data,textStatus,xhr) { | |
console.log('success'); | |
if(textStatus == 'success'){ | |
console.log('ok') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Single Resource **/ | |
<sly data-sly-test.dynamicValue="${someValue}"/> | |
<sly data-sly-test.dynamiceName="${['my-resource-prefix-',dynamicValue ] @ join = ''}"/> | |
<sly data-sly-resource="${ @path=dynamicName, resourceType='/apps/my/component'}" /> | |
/** Multiple Resources **/ | |
<sly data-sly-list="${myList}"> | |
<sly data-sly-test.dynamiceName="${['my-resource-prefix-', itemList.count ] @ join = ''}"/> | |
<sly data-sly-resource="${ @path=dynamicName, resourceType='/apps/my/component'}" /> | |
</sly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to ignore hideInNav property | |
group.1_property=jcr:content/hideInNav | |
group.1_property.operation=not |
OlderNewer