This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ugly aem page with knotx snippet #61
- Loading branch information
1 parent
9c80eee
commit 884e509
Showing
9 changed files
with
100 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
16 changes: 16 additions & 0 deletions
16
aem/site.demo/src/main/content/jcr_root/content/example/demo/products/.content.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?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="cq:Page"> | ||
<jcr:content | ||
cq:designPath="/apps/settings/wcm/designs/example/sites" | ||
cq:template="/apps/example/sites/templates/home-page" | ||
jcr:primaryType="cq:PageContent" | ||
jcr:title="Products List" | ||
jcr:description="Home Page of English US market" | ||
jcr:language="en_US" | ||
sling:resourceType="example/sites/components/home-page"> | ||
<content | ||
jcr:primaryType="nt:unstructured" | ||
sling:resourceType="wcm/foundation/components/parsys"/> | ||
</jcr:content> | ||
</jcr:root> |
13 changes: 13 additions & 0 deletions
13
aem/site.demo/src/main/content/jcr_root/content/example/demo/products/details/.content.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?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="cq:Page"> | ||
<jcr:content | ||
cq:designPath="/apps/settings/wcm/designs/example/sites" | ||
cq:template="/apps/example/sites/templates/products-detail-page" | ||
jcr:primaryType="cq:PageContent" | ||
jcr:title="Products List" | ||
jcr:description="Home Page of English US market" | ||
jcr:language="en_US" | ||
sling:resourceType="example/sites/components/products-detail-page"> | ||
</jcr:content> | ||
</jcr:root> |
7 changes: 7 additions & 0 deletions
7
...src/main/content/jcr_root/apps/example/sites/components/products-detail-page/.content.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?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" | ||
cq:isContainer="{Boolean}false" | ||
jcr:primaryType="cq:Component" | ||
jcr:title="Products Detail Page" | ||
sling:resourceSuperType="wcm/foundation/components/page" | ||
allowedParents=""/> |
43 changes: 43 additions & 0 deletions
43
...ent/jcr_root/apps/example/sites/components/products-detail-page/products-detail-page.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<sly data-sly-use.page="com.company.example.aem.sites.components.page.PageModel"/> | ||
<sly data-sly-use.clientLib="${'/libs/granite/sightly/templates/clientlib.html'}"/> | ||
<!DOCTYPE html> | ||
<html lang="${page.languageCode}"> | ||
<head> | ||
<title>Example | ${page.title}</title> | ||
|
||
<sly data-sly-call="${clientLib.css @ categories='example.sites.publish'}"/> | ||
<sly data-sly-call="${clientLib.css @ categories='example.sites.author'}" data-sly-test="${!wcmmode.disabled}"/> | ||
</head> | ||
<body> | ||
<header id="header" class="container"> | ||
<div class="jumbotron"> | ||
<h1>${page.title}</h1> | ||
<p>${page.description}</p> | ||
</div> | ||
</header> | ||
<div id="content" class="container"> | ||
<knotx:snippet data-knotx-task="hello-world"> | ||
<p>{{hello._result.message}}</p> | ||
</knotx:snippet> | ||
</div> | ||
<footer id="footer" class="container"> | ||
<div class="card"> | ||
<div class="card-header"> | ||
AEM application built by | ||
</div> | ||
<div class="card-body"> | ||
<a href="https://github.com/Cognifide/gradle-aem-plugin"> | ||
<img class="logo" src="/etc.clientlibs/example/sites/clientlibs/page/publish/resources/img/logo.png" alt=""> | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<div class="mt-3 mb-3"> | ||
All rights reserved | 2019 © Company | ||
</div> | ||
</footer> | ||
|
||
<sly data-sly-call="${clientLib.js @ categories='example.sites.publish'}"/> | ||
<sly data-sly-call="${clientLib.js @ categories='example.sites.author'}" data-sly-test="${!wcmmode.disabled}"/> | ||
</body> | ||
</html> |
13 changes: 13 additions & 0 deletions
13
.../src/main/content/jcr_root/apps/example/sites/templates/products-detail-page/.content.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?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="cq:Template" | ||
jcr:title="Product Detail Page" | ||
allowedParents="[/apps/example/sites/templates/products-detail-page]" | ||
ranking="{Long}100"> | ||
<jcr:content | ||
cq:allowedTemplates="[/apps/example/sites/templates/products-detail-page]" | ||
cq:designPath="/apps/settings/wcm/designs/example/sites" | ||
jcr:primaryType="cq:PageContent" | ||
sling:resourceType="example/sites/components/products-detail-page"> | ||
</jcr:content> | ||
</jcr:root> |
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