Revision c6fdba44 cloudcms/cms.py
b/cloudcms/cms.py | ||
---|---|---|
71 | 71 |
|
72 | 72 |
# Feincms Page templates declaration |
73 | 73 |
TEMPLATES = [{ |
74 |
'key': 'basic', |
|
75 |
'title': 'Basic 2 columns template', |
|
76 |
'path': 'cms/pages/page.html', |
|
77 |
'regions': ( |
|
78 |
('main', 'Main region'), |
|
79 |
('sidebar', 'Sidebar', 'inherited'), |
|
80 |
('bottom', 'Bottom section', 'inherited'), |
|
81 |
), |
|
82 |
}, |
|
83 |
{ |
|
84 | 74 |
'key': 'twocolwide', |
85 |
'title': 'Basic 2 columns template (wider)', |
|
75 |
'title': 'Basic 2 columns template (left wider)',
|
|
86 | 76 |
'path': 'cms/pages/twocolwide.html', |
87 | 77 |
'regions': ( |
88 | 78 |
('main', 'Main region'), |
... | ... | |
90 | 80 |
), |
91 | 81 |
}, |
92 | 82 |
{ |
93 |
'key': 'intro', |
|
94 |
'title': 'Intro page Template', |
|
95 |
'path': 'cms/pages/intro.html', |
|
96 |
'regions': ( |
|
97 |
('main', 'Main region'), |
|
98 |
('sidebar', 'Sidebar', 'inherited'), |
|
99 |
('bottom', 'Bottom section', 'inherited'), |
|
100 |
), |
|
101 |
}, |
|
102 |
{ |
|
103 | 83 |
'key': 'singlecol', |
104 |
'title': 'Basic 1 column template',
|
|
84 |
'title': 'Basic (Top 1 col, Bottom 2 cols)',
|
|
105 | 85 |
'path': 'cms/pages/onecol.html', |
106 | 86 |
'regions': ( |
107 |
('main', 'Main region'), |
|
108 |
('bottom', 'Bottom region'), |
|
87 |
('top', 'Top region'), |
|
88 |
('bottom_left', 'Bottom left region'), |
|
89 |
('bottom_right', 'Bottom right region'), |
|
109 | 90 |
), |
110 | 91 |
}, |
111 | 92 |
{ |
... | ... | |
130 | 111 |
# register templates |
131 | 112 |
map(Page.register_templates, TEMPLATES) |
132 | 113 |
|
114 |
Page.create_content_type(TextileContent) |
|
115 |
Page.create_content_type(IntroBlock) |
|
133 | 116 |
Page.create_content_type(RichTextContent) |
134 | 117 |
Page.create_content_type(RawContent) |
135 | 118 |
Page.create_content_type(SectionContent, TYPE_CHOICES=(('block', 'Block'),)) |
Also available in: Unified diff