portal cms apphook and various fixes

This commit is contained in:
2018-03-23 16:53:10 +01:00
parent 5ceb2af5a1
commit 1a3a3f06b5
18 changed files with 161 additions and 28 deletions

View File

@@ -42,6 +42,15 @@ class SectionText(CMSPlugin):
verbose_name_plural = 'Section Texts'
class IntroImage(CMSPlugin):
image = CroppableFilerImageField(verbose_name='Bild')
cropping = ImageRatioField('image', '1000x1000', free_crop=True)
class Meta(CMSPlugin.Meta):
verbose_name = 'Intro Bild'
verbose_name_plural = 'intro Bilder'
class Video(CMSPlugin):
vimeo_id = models.IntegerField(verbose_name='Vimeo ID', help_text='e.g. https://vimeo.com/<b>131766159</b>')
thumbnail = CroppableFilerImageField(verbose_name='Vorschaubild')