Skip to content

Commit

Permalink
Move "Show Table of Content" to Settings panel
Browse files Browse the repository at this point in the history
Move show_toc from the promote panel to the setting panel as requested
by users.
  • Loading branch information
donald committed Jan 18, 2020
1 parent 155b2f7 commit 5b6326b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mpicms/base/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ class BodyMixin(Page):
]

promote_panels = [
]

settings_panels = [
FieldPanel('show_toc')
]

Expand Down
2 changes: 2 additions & 0 deletions mpicms/base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class Meta: # noqa
class HomePage(NewsMixin, SideBarMixin, BodyMixin, BasePage):
content_panels = Page.content_panels + BodyMixin.content_panels + SideBarMixin.content_panels
promote_panels = Page.promote_panels + BodyMixin.promote_panels
settings_panels = Page.settings_panels + BodyMixin.settings_panels
search_fields = Page.search_fields + BodyMixin.search_fields + SideBarMixin.search_fields
api_fields = BodyMixin.api_fields

Expand All @@ -112,6 +113,7 @@ class Meta: # noqa
class WikiPage(CategoryMixin, SideBarMixin, BodyMixin, BasePage):
content_panels = Page.content_panels + BodyMixin.content_panels + SideBarMixin.content_panels
promote_panels = Page.promote_panels + BodyMixin.promote_panels
settings_panels = Page.settings_panels + BodyMixin.settings_panels
search_fields = Page.search_fields + BodyMixin.search_fields + SideBarMixin.search_fields
api_fields = BodyMixin.api_fields

Expand Down

0 comments on commit 5b6326b

Please sign in to comment.