projects
/
snf-cloudcms
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Integrate automatic discovery of client versions
[snf-cloudcms]
/
cloudcms
/
cms.py
diff --git
a/cloudcms/cms.py
b/cloudcms/cms.py
index
4cf9d5f
..
3d72a00
100644
(file)
--- a/
cloudcms/cms.py
+++ b/
cloudcms/cms.py
@@
-55,6
+55,7
@@
from feincms.content.video.models import VideoContent
from feincms.content.richtext.models import RichTextContent
from cloudcmsblog.models import Entry, LatestEntries
from feincms.content.richtext.models import RichTextContent
from cloudcmsblog.models import Entry, LatestEntries
+from cloudcmsresources.models import ResourcesList
from cloudcms.content import *
Page.register_extensions(
from cloudcms.content import *
Page.register_extensions(
@@
-116,6
+117,14
@@
TEMPLATES = [{
('sidebar', 'Sidebar', 'inherited'),
),
},
('sidebar', 'Sidebar', 'inherited'),
),
},
+ {
+ 'key': 'raw',
+ 'title': 'Empty content template',
+ 'path': 'cms/pages/empty.html',
+ 'regions': (
+ ('main', 'Main region'),
+ ),
+ },
]
# register templates
]
# register templates
@@
-129,6
+138,8
@@
Page.create_content_type(TwitterFeed)
Page.create_content_type(VideoContent)
Page.create_content_type(VideoSection)
Page.create_content_type(LatestEntries)
Page.create_content_type(VideoContent)
Page.create_content_type(VideoSection)
Page.create_content_type(LatestEntries)
+Page.create_content_type(IntroButton)
+Page.create_content_type(ClientDownload)
Page.create_content_type(ImageContent, POSITION_CHOICES=(
('default', 'Default position'),
))
Page.create_content_type(ImageContent, POSITION_CHOICES=(
('default', 'Default position'),
))
@@
-143,6
+154,7
@@
Page.create_content_type(ApplicationContent, APPLICATIONS=(
# cloudcms specific content registration
Page.create_content_type(LoginForm)
Page.create_content_type(AboutBlock)
# cloudcms specific content registration
Page.create_content_type(LoginForm)
Page.create_content_type(AboutBlock)
+Page.create_content_type(ResourcesList)
# Feincms specific registrations for our blog entry model
# Feincms specific registrations for our blog entry model