Skip to content

Commit 99e7c67

Browse files
authored
Merge pull request #9 from aem-design/feature/details-template
Feature/details template
2 parents 201b498 + 3f8c986 commit 99e7c67

File tree

13 files changed

+536
-3
lines changed

13 files changed

+536
-3
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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"
3+
jcr:description="Allows displaying content within Details Components"
4+
jcr:primaryType="cq:Component"
5+
jcr:title="Content Template"
6+
cq:icon="fileTemplate"
7+
sling:resourceSuperType="aemdesign/components/content/contenttemplate/v1/contenttemplate"
8+
componentGroup="AEM.Design - Content"/>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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"
3+
jcr:description="Allows displaying content within Details Components"
4+
jcr:primaryType="cq:Component"
5+
jcr:title="Content Template"
6+
cq:icon="fileTemplate"
7+
componentGroup="hidden"/>
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
Content Template
2+
============
3+
4+
Content Template component that allows using templates to display component data.
5+
6+
# Overview
7+
8+
Component for using a template to display component content.
9+
10+
## Information
11+
* **Vendor**: [AEM.Design](http://aem.design)
12+
* **Version**: v1
13+
* **Compatibility**: AEM 6.4+
14+
* **Status**: production-ready
15+
* **Showcase**: [/content/aemdesign-showcase/en/component/content/contenttemplate](/content/aemdesign-showcase/en/component/content/contenttemplate.html?wcmmode=disabled)
16+
* **Local Code**: [/apps/aemdesign/components/content/contenttemplate/v2/contenttemplate](/crx/de/#/apps/aemdesign/components/content/contenttemplate/v2/contenttemplate)
17+
* **Source**: [github/aem-design](https://github.com/aem-design/aemdesign-aem-common/tree/master/src/main/content/jcr_root/apps/aemdesign/components/content/contenttemplate/v2/contenttemplate)
18+
* **Readme**: [/apps/aemdesign/components/content/contenttemplate/v2/contenttemplate](/mnt/overlay/wcm/core/content/sites/components/details.html/apps/aemdesign/components/content/contenttemplate/v2/contenttemplate)
19+
20+
# Authoring
21+
22+
Following section covers authoring features
23+
24+
## Edit Dialog properties
25+
26+
These fields are available for input by the authors. These fields are used in templates
27+
28+
<table style="border-spacing: 1px;border-collapse: separate;width: 100.0%;text-align: left;background-color: black; text-indent: 4px;">
29+
<thead style="background-color: white;font-size: larger;">
30+
<tr>
31+
<th style="width: 8%;">Tab</th>
32+
<th style="width: 14%;">Field Title</th>
33+
<th style="width: 8%;">Field Name</th>
34+
<th style="width: 8%;">Default Value</th>
35+
<th>Description</th>
36+
</tr>
37+
</thead>
38+
<tbody style="background-color: #b0e0e6;">
39+
<tr>
40+
<td></td>
41+
<td>Variant</td>
42+
<td>variant</td>
43+
<td>anchor</td>
44+
<td>defines which variant to use</td>
45+
</tr>
46+
<tr>
47+
<td>Style</td>
48+
<td>Include: Global Style Tab</td>
49+
<td></td>
50+
<td></td>
51+
<td>common style options</td>
52+
</tr>
53+
<tr>
54+
<td>Accessibility</td>
55+
<td>Include: Global Accessibility Tab</td>
56+
<td></td>
57+
<td></td>
58+
<td>common accessibility options</td>
59+
</tr>
60+
<tr>
61+
<td>Link Attributes</td>
62+
<td>Include: Global Link Attributes Tab</td>
63+
<td></td>
64+
<td></td>
65+
<td>common link attributes</td>
66+
</tr>
67+
<tr>
68+
<td>Analytics</td>
69+
<td>Include: Global Analytics Tab</td>
70+
<td></td>
71+
<td></td>
72+
<td>common analytics options</td>
73+
</tr>
74+
</tbody>
75+
</table>
76+
77+
78+
## Design Dialog Tabs
79+
80+
This enables creating of default values for components to be use in templates
81+
82+
<table style="border-spacing: 1px;border-collapse: separate;width: 100.0%;text-align: left;background-color: black; text-indent: 4px;">
83+
<thead style="background-color: white;font-size: larger;">
84+
<tr>
85+
<th style="width: 8%;">Tab</th>
86+
<th style="width: 14%;">Field Title</th>
87+
<th style="width: 8%;">Field Name</th>
88+
<th style="width: 8%;">Default Value</th>
89+
<th>Description</th>
90+
</tr>
91+
</thead>
92+
<tbody style="background-color: #b0e0e6;">
93+
<tr>
94+
<td>Content</td>
95+
<td>Includes: Content</td>
96+
<td></td>
97+
<td></td>
98+
<td>includes Content tab form Edit Dialog</td>
99+
</tr>
100+
<tr>
101+
<td>Style</td>
102+
<td>Include: Global Style Tab</td>
103+
<td></td>
104+
<td></td>
105+
<td>common style options</td>
106+
</tr>
107+
<tr>
108+
<td>Accessibility</td>
109+
<td>Include: Global Accessibility Tab</td>
110+
<td></td>
111+
<td></td>
112+
<td>common accessibility options</td>
113+
</tr>
114+
<tr>
115+
<td>Analytics</td>
116+
<td>Include: Global Analytics Tab</td>
117+
<td></td>
118+
<td></td>
119+
<td>common analytics options</td>
120+
</tr>
121+
</tbody>
122+
</table>
123+
124+
# Variants
125+
126+
This component has the following variants
127+
128+
<table style="border-spacing: 1px;border-collapse: separate;width: 100.0%;text-align: left;background-color: black; text-indent: 4px;">
129+
<thead style="background-color: white;font-size: larger;">
130+
<tr>
131+
<th style="width: 8%;">Name</th>
132+
<th>Description</th>
133+
</tr>
134+
</thead>
135+
<tbody style="background-color: #b0e0e6;">
136+
<tr>
137+
<td>Default</td>
138+
<td>Output of template content</td>
139+
</tr>
140+
</tbody>
141+
</table>
142+
143+
144+
145+
146+
<p></p>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:granite="http://www.adobe.com/jcr/granite/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"
3+
jcr:primaryType="nt:unstructured"
4+
jcr:title="Content Template (Design)"
5+
sling:resourceType="cq/gui/components/authoring/dialog">
6+
<content
7+
jcr:primaryType="nt:unstructured"
8+
sling:resourceType="granite/ui/components/coral/foundation/container">
9+
<items jcr:primaryType="nt:unstructured">
10+
<plugins
11+
jcr:primaryType="nt:unstructured"
12+
sling:resourceType="granite/ui/components/coral/foundation/accordion">
13+
<items jcr:primaryType="nt:unstructured">
14+
15+
16+
<style
17+
jcr:primaryType="nt:unstructured"
18+
jcr:title="Style"
19+
path="/apps/aemdesign/global/dialog/touch/style_design/content"
20+
resourceType="granite/ui/components/coral/foundation/container"
21+
sling:resourceType="granite/ui/components/coral/foundation/include"/>
22+
<accessibility
23+
jcr:primaryType="nt:unstructured"
24+
jcr:title="Accessibility"
25+
path="/apps/aemdesign/global/dialog/touch/accessibility_design/content"
26+
resourceType="granite/ui/components/coral/foundation/container"
27+
sling:resourceType="granite/ui/components/coral/foundation/include"/>
28+
<analytics
29+
jcr:primaryType="nt:unstructured"
30+
jcr:title="Analytics"
31+
path="/apps/aemdesign/global/dialog/touch/analytics_design/content"
32+
resourceType="granite/ui/components/coral/foundation/container"
33+
sling:resourceType="granite/ui/components/coral/foundation/include"/>
34+
</items>
35+
</plugins>
36+
</items>
37+
</content>
38+
</jcr:root>

0 commit comments

Comments
 (0)