-
Notifications
You must be signed in to change notification settings - Fork 0
/
Zones.txt
104 lines (94 loc) · 2.45 KB
/
Zones.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
==document==
[[ZoneName]] == zone
<html>
<head>
[[Head]]
</head>
<body>
[[Body]] (layout)
[[Tail]]
</body>
<html>
==layout==
(TheThemeMachine)
----------------------------------
| Header |
----------------------------------
| Navigation |
----------------------------------
| Featured |
----------------------------------
| BeforeMain |
----------------------------------
| A | Messages | A |
| s |--------------------| s |
| i | BeforeContent | i |
| d |--------------------| d |
| e | | e |
| F | | S |
| i | Content | e |
| r | | c |
| s | | o |
| t |--------------------| n |
| | AfterContent | d |
----------------------------------
| AfterMain |
----------------------------------
| Tripel | Tripel | Tripel |
| First | Second | Third |
----------------------------------
| Footer| Footer| Footer| Footer |
| Quad | Quad | Quad | Quad |
| First | Second| Third | Fourth |
----------------------------------
| Footer |
----------------------------------
==content==
Generally display templates have Header, Meta, Manage, Content and Footer zones (in the admin anything other than Content is special-case per template)
while edit templates having Meta (less frequently), Primary and Secondary (i.e. sidebar) zones.
[[ZoneName]] == zone
(Content - base content shape)
<article>
<header>
[[Header]]
<div class="metadata">
[[Meta]]
</div>
</header>
[[Content]]
<footer>
[[Footer]]
</footer>
</article>
//admin display template example//
(Content.SummaryAdmin - content summary in an admin list view)
<div class="summary">
<div class="properties">
<checkbox/>
<h3 />
<div class="metadata"
[[Meta]]
</div>
</div>
<div class="related">
[[Secondary]]
<a>edit</a>
<a>remove</a>
</div>
<div class="primary">
[[Primary]]
</div>
</div>
//edit template example//
(Content.Edit)
<div class="sections">
<div class="primary">
[[Primary]]
</div>
<div class="secondary">
[[Secondary]]
<fieldset>
<button /submit />
</fieldset>
</div>
</div>