Upload
ludovic-claude
View
122
Download
11
Embed Size (px)
DESCRIPTION
Cheatsheet for the Apache Sling framework.
Citation preview
understanding
Apache SlingSele cto rEx te ns ion
script resolutionSu fx
1 2 3 4 5Best match:
Metho d
HTTP Request
GET /wiki/Sling.edit.html/richtext?simple=true HTTP/1.1Pat h Que ry Parame tersProperty title body Value Sling Intro Hello World
Content Resolution
/wiki/SlingNode has properties
sling:resourceType
wiki/page
Get Resource Type
us e: sling:resourceType= fa llb ac k: sling:resourceSuperType=wiki/page null
Resource Type
las t jcr:primaryType= re so rt: nt:file
Script Locations
eit he r:
/apps/wiki/page/
or: /libs/wiki/page/
Script NamesExtens ionedit.esp html.espWorst match:
6Script
edit.html.espSelecto r+Exten sion
GET.esp
Sele cto r
Met ho d
7
Include Optionssling.include("path", "forceResourceType= wiki/body, (Powerf ul) replaceSuffix= xhtml, addSelectors= foo.bar");
script");