Revision 6f4b4fe5
b/cloudcms/cms.py | ||
---|---|---|
82 | 82 |
{ |
83 | 83 |
'key': 'singlecol', |
84 | 84 |
'title': 'Basic (Top 1 col, Bottom 2 cols)', |
85 |
'path': 'cms/pages/onecol.html',
|
|
85 |
'path': 'cms/pages/basic1top2bottom.html',
|
|
86 | 86 |
'regions': ( |
87 | 87 |
('top', 'Top region'), |
88 | 88 |
('bottom_left', 'Bottom left region'), |
89 | 89 |
('bottom_right', 'Bottom right region'), |
90 | 90 |
), |
91 | 91 |
}, |
92 |
{ |
|
93 |
'key': 'basic2top2bottom', |
|
94 |
'title': 'Basic (Top 2 cols, Bottom 2 cols)', |
|
95 |
'path': 'cms/pages/basic2top2bottom.html', |
|
96 |
'regions': ( |
|
97 |
('top_left', 'Top left region'), |
|
98 |
('top_right', 'Top right region'), |
|
99 |
('bottom_left', 'Bottom left region'), |
|
100 |
('bottom_right', 'Bottom right region'), |
|
101 |
), |
|
102 |
}, |
|
92 | 103 |
{ |
93 | 104 |
'key': 'blog', |
94 | 105 |
'title': 'Blog template', |
... | ... | |
147 | 158 |
Page.create_content_type(LoginForm) |
148 | 159 |
Page.create_content_type(AboutBlock) |
149 | 160 |
Page.create_content_type(ResourcesList) |
150 |
Page.create_content_type(BlockColor) |
|
161 |
Page.create_content_type(BlockColor)
|
|
151 | 162 |
|
152 | 163 |
|
153 | 164 |
|
b/cloudcms/templates/cms/pages/basic1top2bottom.html | ||
---|---|---|
1 |
{% extends "cms/base.html" %} |
|
2 |
|
|
3 |
{% block page.body %} |
|
4 |
<div class="full"> |
|
5 |
|
|
6 |
{% block page.top.content %} |
|
7 |
{% for content in feincms_page.content.top %} |
|
8 |
{{ content.render }} |
|
9 |
{% endfor %} |
|
10 |
{% endblock %} |
|
11 |
|
|
12 |
</div> |
|
13 |
<div class="two-cols clearfix"> |
|
14 |
|
|
15 |
<div class="rt"> |
|
16 |
{% block page.bottom_right.content %} |
|
17 |
{% for content in feincms_page.content.bottom_right %} |
|
18 |
{{ content.render }} |
|
19 |
{% endfor %} |
|
20 |
{% endblock %} |
|
21 |
</div> |
|
22 |
<div class="lt"> |
|
23 |
{% block page.bottom_left.content %} |
|
24 |
{% for content in feincms_page.content.bottom_left %} |
|
25 |
{{ content.render }} |
|
26 |
{% endfor %} |
|
27 |
{% endblock %} |
|
28 |
</div> |
|
29 |
|
|
30 |
|
|
31 |
</div> |
|
32 |
{% endblock %} |
|
33 |
|
b/cloudcms/templates/cms/pages/basic2top2bottom.html | ||
---|---|---|
1 |
{% extends "cms/base.html" %} |
|
2 |
|
|
3 |
{% block page.body %} |
|
4 |
<div class="two-cols clearfix dotted"> |
|
5 |
|
|
6 |
<div class="rt"> |
|
7 |
{% block page.top_right.content %} |
|
8 |
{% for content in feincms_page.content.top_right %} |
|
9 |
{{ content.render }} |
|
10 |
{% endfor %} |
|
11 |
{% endblock %} |
|
12 |
</div> |
|
13 |
<div class="lt"> |
|
14 |
{% block page.top_left.content %} |
|
15 |
{% for content in feincms_page.content.top_left %} |
|
16 |
{{ content.render }} |
|
17 |
{% endfor %} |
|
18 |
{% endblock %} |
|
19 |
</div> |
|
20 |
|
|
21 |
|
|
22 |
</div> |
|
23 |
<div class="two-cols clearfix"> |
|
24 |
|
|
25 |
<div class="rt"> |
|
26 |
{% block page.bottom_right.content %} |
|
27 |
{% for content in feincms_page.content.bottom_right %} |
|
28 |
{{ content.render }} |
|
29 |
{% endfor %} |
|
30 |
{% endblock %} |
|
31 |
</div> |
|
32 |
<div class="lt"> |
|
33 |
{% block page.bottom_left.content %} |
|
34 |
{% for content in feincms_page.content.bottom_left %} |
|
35 |
{{ content.render }} |
|
36 |
{% endfor %} |
|
37 |
{% endblock %} |
|
38 |
</div> |
|
39 |
|
|
40 |
|
|
41 |
</div> |
|
42 |
{% endblock %} |
|
43 |
|
/dev/null | ||
---|---|---|
1 |
{% extends "cms/base.html" %} |
|
2 |
|
|
3 |
{% block page.body %} |
|
4 |
<div class="full"> |
|
5 |
|
|
6 |
{% block page.top.content %} |
|
7 |
{% for content in feincms_page.content.top %} |
|
8 |
{{ content.render }} |
|
9 |
{% endfor %} |
|
10 |
{% endblock %} |
|
11 |
|
|
12 |
</div> |
|
13 |
<div class="two-cols clearfix"> |
|
14 |
|
|
15 |
<div class="rt"> |
|
16 |
{% block page.bottom_right.content %} |
|
17 |
{% for content in feincms_page.content.bottom_right %} |
|
18 |
{{ content.render }} |
|
19 |
{% endfor %} |
|
20 |
{% endblock %} |
|
21 |
</div> |
|
22 |
<div class="lt"> |
|
23 |
{% block page.bottom_left.content %} |
|
24 |
{% for content in feincms_page.content.bottom_left %} |
|
25 |
{{ content.render }} |
|
26 |
{% endfor %} |
|
27 |
{% endblock %} |
|
28 |
</div> |
|
29 |
|
|
30 |
|
|
31 |
</div> |
|
32 |
{% endblock %} |
|
33 |
|
Also available in: Unified diff