Change to content to Orderable
This commit is contained in:
@@ -10,25 +10,25 @@ from saburly.custom_editor import FULL_EDITOR
|
||||
|
||||
class AboutPage(Page):
|
||||
|
||||
intro_title = RichTextField(blank=True, features=FULL_EDITOR)
|
||||
intro_text = RichTextField(blank=True, features=FULL_EDITOR)
|
||||
intro_image = RichTextField(blank=True, features=FULL_EDITOR)
|
||||
|
||||
section_one_title = RichTextField(blank=True, features=FULL_EDITOR)
|
||||
section_one_text = RichTextField(blank=True, features=FULL_EDITOR)
|
||||
section_one_img = RichTextField(blank=True, features=FULL_EDITOR)
|
||||
|
||||
section_two_title = RichTextField(blank=True, features=FULL_EDITOR)
|
||||
section_two_text = RichTextField(blank=True, features=FULL_EDITOR)
|
||||
section_two_img = RichTextField(blank=True, features=FULL_EDITOR)
|
||||
section_one_image = RichTextField(blank=True, features=FULL_EDITOR)
|
||||
|
||||
content_panels = Page.content_panels + [
|
||||
MultiFieldPanel([
|
||||
FieldPanel('section_one_title', classname="full"),
|
||||
FieldPanel('section_one_text', classname="full"),
|
||||
FieldPanel('section_one_img', classname="full"),
|
||||
], heading="Section One"),
|
||||
FieldPanel('intro_title', classname="full"),
|
||||
FieldPanel('intro_text', classname="full"),
|
||||
FieldPanel('intro_image', classname="full"),
|
||||
], heading="Intro"),
|
||||
|
||||
MultiFieldPanel([
|
||||
FieldPanel('section_two_title', classname="full"),
|
||||
FieldPanel('section_two_text', classname="full"),
|
||||
FieldPanel('section_two_img', classname="full"),
|
||||
], heading="Section Two"),
|
||||
FieldPanel('section_one_title', classname="full"),
|
||||
FieldPanel('section_one_text', classname="full"),
|
||||
FieldPanel('section_one_image', classname="full"),
|
||||
], heading="Section One"),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user