from feincms.content.video.models import VideoContent
from feincms.content.richtext.models import RichTextContent
-from cloudcmsblog.models import Entry
+from cloudcmsblog.models import Entry, LatestEntries
+from cloudcmsresources.models import ResourcesList
from cloudcms.content import *
Page.register_extensions(
'regions': (
('main', 'Main region'),
('sidebar', 'Sidebar', 'inherited'),
+ ('bottom', 'Bottom section', 'inherited'),
),
},
{
'regions': (
('main', 'Main region'),
('sidebar', 'Sidebar', 'inherited'),
+ ('bottom', 'Bottom section', 'inherited'),
),
},
{
'path': 'cms/pages/onecol.html',
'regions': (
('main', 'Main region'),
+ ('bottom', 'Bottom region'),
),
},
{
('sidebar', 'Sidebar', 'inherited'),
),
},
+ {
+ 'key': 'raw',
+ 'title': 'Empty content template',
+ 'path': 'cms/pages/empty.html',
+ 'regions': (
+ ('main', 'Main region'),
+ ),
+ },
]
# register templates
Page.create_content_type(TwitterFeed)
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'),
))
# 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
Entry.create_content_type(VideoContent)
Entry.create_content_type(TwitterFeed)
Entry.create_content_type(RawContent)
+Entry.create_content_type(LatestEntries)
Entry.create_content_type(SectionContent, TYPE_CHOICES=(('block', 'Block'),))