- Core Components
/apps/core/wcm/components
- Latest Release: https://github.com/Adobe-Marketing-Cloud/aem-core-wcm-components
- JSP foundation components (most deprecated)
foundation/components
- HTL Foundation components (most deprecated)
wcm/foundation/components
This file contains hidden or 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
package com.github.mickleroy.models; | |
import org.apache.felix.scr.annotations.sling.SlingFilter; | |
import org.apache.felix.scr.annotations.sling.SlingFilterScope; | |
import org.apache.sling.api.SlingHttpServletResponse; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import javax.servlet.*; | |
import java.io.IOException; |
This file contains hidden or 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:jcr="http://www.jcp.org/jcr/1.0" | |
jcr:primaryType="sling:OsgiConfig" | |
resource.resolver.searchpath="[/apps,/libs,/apps/foundation/components/primary,/libs/foundation/components/primary]" | |
resource.resolver.manglenamespaces="{Boolean}true" | |
resource.resolver.allowDirect="{Boolean}true" | |
resource.resolver.required.providers="[org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProviderFactory]" | |
resource.resolver.virtual="[/:/]" | |
resource.resolver.mapping="[/-/,/content/we-retail/us/en/-/]" | |
resource.resolver.map.location="/etc/map" |
This file contains hidden or 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
<granite:rendercondition | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/coral/foundation/renderconditions/simple" | |
expression="${param.biz == 'baz'}" | |
expression="${empty param.foo}" | |
expression="${not empty param.foo and not empty param.bar}" | |
expression="${param['foo'] not eq 'bar'}" | |
expression="${cookie.cookiename.value eq 'foo'}" | |
expression="${requestPathInfo.selectorString == 'edit'}" | |
expression="${requestPathInfo.suffix != '/foo/bar')}" |
This file contains hidden or 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
<items jcr:primaryType="nt:unstructured"> | |
<widgetAlways | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/foundation/form/textfield" | |
fieldLabel="This always shows" | |
name="./widgetAlways"/> | |
<widgetHeaderChrome | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/foundation/form/textfield" | |
fieldLabel="This only shows when header "User-Agent" contains "chrome"" |
This file contains hidden or 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
package cq; | |
/* | |
* This Java Quick Start uses the jackrabbit-standalone-2.4.0.jar | |
* file. See the previous section for the location of this JAR file | |
*/ | |
import javax.jcr.AccessDeniedException; | |
import javax.jcr.InvalidItemStateException; | |
import javax.jcr.ItemExistsException; |
###Description Retrieve a Page Object from all pages which are in the Site root then build a breadcrumb component and display the current pages title in a submenu.
###Use case Display a bar under eg a menu which displays the current pages title and functional breadcrumb components o the right.
##Requirements
- Responsive and which works on all mobile devices and desktop.
- Current pages title on the left
- Breadcrumbs on the right
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
This file contains hidden or 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 http = require('http'); //add the http module | |
//Create a server | |
var myServer = http.createServer(function (request, response) { | |
// Return something from server | |
response.writeHead(200, {"Content-Type": "text/plain"}); | |
response.end("Hello Node\n"); | |
}); //create a server | |
Bind server to a port |
NewerOlder