+# Extra cms applications
+EXTRA_CONTENT_MODELS = []
+
+if 'cloudcmsblog' in settings.INSTALLED_APPS:
+ from cloudcmsblog.models import Entry, LatestEntries
+ EXTRA_CONTENT_MODELS.append(Entry)
+ Page.create_content_type(LatestEntries)
+
+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(
+ ('main', _('Main content area')),
+ ('sidebar', _('Right column')),
+ )
+ model.create_content_type(RawContent)
+ model.create_content_type(TemplateContent)
+ model.create_content_type(SectionContent, TYPE_CHOICES=(('block', 'Block'),))
+ model.create_content_type(RichTextContent, cleanse=False, regions=('main',))
+ model.create_content_type(ImageContent, POSITION_CHOICES=(
+ ('default', 'Default position'),
+ ))