Revision b9d897eb cloudcms/cms.py
b/cloudcms/cms.py | ||
---|---|---|
110 | 110 |
), |
111 | 111 |
}, |
112 | 112 |
{ |
113 |
'key': 'userguide', |
|
114 |
'title': 'Userguide template', |
|
115 |
'path': 'cms/pages/userguide.html', |
|
116 |
'regions': ( |
|
117 |
('top', 'Top region'), |
|
118 |
('bottom_left', 'Bottom left region'), |
|
119 |
('bottom_right', 'Bottom right region'), |
|
120 |
), |
|
121 |
}, |
|
122 |
{ |
|
113 | 123 |
'key': 'faq', |
114 | 124 |
'title': 'FAQ\'s template', |
115 | 125 |
'path': 'cms/pages/faq.html', |
... | ... | |
152 | 162 |
)) |
153 | 163 |
Page.create_content_type(ApplicationContent, APPLICATIONS=( |
154 | 164 |
('cloudcmsblog', 'Cloud blog', {'urls': 'cloudcmsblog.urls'}), |
155 |
('cloudcmsfaq', 'Cloud FAQ', {'urls': 'cloudcmsfaq.urls'}),)) |
|
165 |
('cloudcmsfaq', 'Cloud FAQ', {'urls': 'cloudcmsfaq.urls'}), |
|
166 |
('cloudcmsguide', 'Cloud user guide', {'urls': 'cloudcmsguide.urls'}),) |
|
167 |
) |
|
156 | 168 |
|
157 | 169 |
# cloudcms specific content registration |
158 | 170 |
Page.create_content_type(LoginForm) |
... | ... | |
160 | 172 |
Page.create_content_type(ResourcesList) |
161 | 173 |
Page.create_content_type(BlockColor) |
162 | 174 |
|
163 |
|
|
164 |
|
|
165 | 175 |
# Extra cms applications |
166 | 176 |
EXTRA_CONTENT_MODELS = [] |
167 | 177 |
|
... | ... | |
175 | 185 |
EXTRA_CONTENT_MODELS.append(Question) |
176 | 186 |
|
177 | 187 |
if 'cloudcmsguide' in settings.INSTALLED_APPS: |
178 |
from cloudcmsguide.models import Section
|
|
179 |
EXTRA_CONTENT_MODELS.append(Section)
|
|
188 |
from cloudcmsguide.models import UserGuideEntry
|
|
189 |
EXTRA_CONTENT_MODELS.append(UserGuideEntry)
|
|
180 | 190 |
|
181 | 191 |
for model in EXTRA_CONTENT_MODELS: |
182 | 192 |
# Feincms specific registrations for our blog entry model |
Also available in: Unified diff