Beispiel #1
0
class AboutLandingPage(Page):
    hero = stream_factory(null=True, blank=True)
    sections = StreamField([('sections', OptionBlock())], null=True)

    subpage_types = ['ResourcePage', 'DocumentFeedPage']

    content_panels = Page.content_panels + [
        StreamFieldPanel('hero'),
        StreamFieldPanel('sections')
    ]
Beispiel #2
0
class PressLandingPage(Page):
    hero = stream_factory(null=True, blank=True)
    release_intro = stream_factory(null=True, blank=True)
    digest_intro = stream_factory(null=True, blank=True)

    option_blocks = StreamField([('option_blocks', OptionBlock())])

    contact_intro = stream_factory(null=True, blank=True)

    content_panels = Page.content_panels + [
        StreamFieldPanel('hero'),
        StreamFieldPanel('release_intro'),
        StreamFieldPanel('digest_intro'),
        StreamFieldPanel('option_blocks'),
        StreamFieldPanel('contact_intro'),
    ]