Article promote menu reordered
This commit is contained in:
parent
41bc3c036a
commit
0bd8c38f66
1 changed files with 7 additions and 4 deletions
|
@ -78,7 +78,8 @@ class ArticlePage(Page):
|
||||||
|
|
||||||
date = models.DateField("Date", null=True, blank=True)
|
date = models.DateField("Date", null=True, blank=True)
|
||||||
|
|
||||||
on_homepage = models.BooleanField(default=False, verbose_name="Auf der Frontpage anzeigen")
|
on_homepage = models.BooleanField(default=False, verbose_name="Featured",
|
||||||
|
help_text="Auf der Frontpage anzeigen")
|
||||||
|
|
||||||
feed_image = models.ForeignKey(
|
feed_image = models.ForeignKey(
|
||||||
'wagtailimages.Image',
|
'wagtailimages.Image',
|
||||||
|
@ -110,10 +111,12 @@ class ArticlePage(Page):
|
||||||
ImageChooserPanel('feed_image'),
|
ImageChooserPanel('feed_image'),
|
||||||
]
|
]
|
||||||
promote_panels = [
|
promote_panels = [
|
||||||
|
InlinePanel('related_links', label="Links"),
|
||||||
|
MultiFieldPanel([
|
||||||
FieldPanel('date'),
|
FieldPanel('date'),
|
||||||
FieldPanel('on_homepage'),
|
FieldPanel('on_homepage'),
|
||||||
InlinePanel('related_links', label="Links"),
|
], heading="Veröffentlichung"),
|
||||||
MultiFieldPanel(Page.promote_panels, "Common page configuration"),
|
MultiFieldPanel(Page.promote_panels, "Einstellungen"),
|
||||||
]
|
]
|
||||||
parent_page_types = ['home.ArticleIndexPage']
|
parent_page_types = ['home.ArticleIndexPage']
|
||||||
subpage_types = []
|
subpage_types = []
|
||||||
|
|
Loading…
Reference in a new issue