Missing feincms 1.6 migrations
[snf-cloudcms] / cloudcms / cms.py
index 023b323..4f2b091 100644 (file)
@@ -57,6 +57,7 @@ from feincms.content.richtext.models import RichTextContent
 from cloudcmsresources.models import ResourcesList
 from cloudcms.content import *
 
+
 Page.register_extensions(
     'changedate',
     'datepublisher',
@@ -65,7 +66,8 @@ Page.register_extensions(
     'symlinks',
     'navigation',
     'sites',
-    'titles'
+    'titles',
+    'featured',
 )
 
 
@@ -110,6 +112,16 @@ TEMPLATES = [{
         ),
     },
     {
+    'key': 'userguide',
+    'title': 'Userguide template',
+    'path': 'cms/pages/userguide.html',
+    'regions': (
+        ('top', 'Top region'),
+        ('bottom_left', 'Bottom left region'),
+        ('bottom_right', 'Bottom right region'),
+        ),
+    },
+    {
     'key': 'faq',
     'title': 'FAQ\'s template',
     'path': 'cms/pages/faq.html',
@@ -127,6 +139,18 @@ TEMPLATES = [{
         ('main', 'Main region'),
         ),
     },
+    {
+    'key': 'topwidetwocol',
+    'title': 'Basic (Top 1 col, Middle 2 cols, Bottom 2 cols)',
+    'path': 'cms/pages/topwidetwocol.html',
+    'regions': (
+        ('top', 'Top region'), 
+        ('middle_left', 'Middle left region'),
+        ('middle_right', 'Middle right region'),
+        ('bottom_left', 'Bottom left region'),
+        ('bottom_right', 'Bottom right region'),
+        ),
+    },
 ]
 
 # register templates
@@ -152,15 +176,15 @@ Page.create_content_type(MediaFileContent, TYPE_CHOICES=(
 ))
 Page.create_content_type(ApplicationContent, APPLICATIONS=(
     ('cloudcmsblog', 'Cloud blog', {'urls': 'cloudcmsblog.urls'}),
-    ('cloudcmsfaq', 'Cloud FAQ', {'urls': 'cloudcmsfaq.urls'}),))
+    ('cloudcmsfaq', 'Cloud FAQ', {'urls': 'cloudcmsfaq.urls'}),
+    ('cloudcmsguide', 'Cloud user guide', {'urls': 'cloudcmsguide.urls'}),)
+)
 
 # cloudcms specific content registration
 Page.create_content_type(LoginForm)
 Page.create_content_type(AboutBlock)
 Page.create_content_type(ResourcesList)
-Page.create_content_type(BlockColor) 
-
-
+Page.create_content_type(BlockColor)
 
 # Extra cms applications
 EXTRA_CONTENT_MODELS = []
@@ -174,6 +198,10 @@ if 'cloudcmsfaq' in settings.INSTALLED_APPS:
     from cloudcmsfaq.models import Question
     EXTRA_CONTENT_MODELS.append(Question)
 
+if 'cloudcmsguide' in settings.INSTALLED_APPS:
+    from cloudcmsguide.models import UserGuideEntry
+    EXTRA_CONTENT_MODELS.append(UserGuideEntry)
+
 for model in EXTRA_CONTENT_MODELS:
     # Feincms specific registrations for our blog entry model
     model.register_regions(
@@ -188,3 +216,6 @@ for model in EXTRA_CONTENT_MODELS:
         ('default', 'Default position'),
     ))
 
+
+Page.create_content_type(StatsBlock)
+Page.create_content_type(IntroVideo)
\ No newline at end of file