Skip to content
Snippets Groups Projects
Commit 7f3dcc43 authored by jan.bednarik's avatar jan.bednarik
Browse files

majak: Tweaks

parent ded45bbb
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ MEDIA_URL = "/media/"
# Wagtail settings
WAGTAIL_SITE_NAME = "majak"
WAGTAIL_SITE_NAME = "Maják"
# Base URL to use when referring to full URLs within the Wagtail admin backend -
# e.g. in notification emails. Don't include '/admin' or a trailing slash
......
......@@ -21,8 +21,19 @@ class SenatorHomePage(Page):
FieldPanel("my_work"),
]
subpage_types = ["senator.SenatorNewsIndexPage"]
class Meta:
verbose_name = "[senátor] Úvodní stránka"
class SenatorNewsIndexPage(Page):
parent_page_types = ["senator.SenatorHomePage"]
subpage_types = ["senator.SenatorNewsPage"]
class Meta:
verbose_name = "[senátor] Přehled novinek"
def get_context(self, request):
# Update context to include only published posts, ordered by reverse-chron
context = super().get_context(request)
......@@ -42,6 +53,7 @@ class SenatorNewsPage(Page):
search_fields = Page.search_fields + [
index.SearchField("perex"),
index.SearchField("body"),
index.FilterField("date"),
]
content_panels = Page.content_panels + [
......@@ -50,3 +62,9 @@ class SenatorNewsPage(Page):
FieldPanel("body", classname="full"),
ImageChooserPanel("image"),
]
parent_page_types = ["senator.SenatorNewsIndexPage"]
subpage_types = []
class Meta:
verbose_name = "[senátor] Novinka"
......@@ -749,11 +749,9 @@
<body data-rsssl=1 class="home page-template-default page page-id-4949 l-body Zephyr_4.10.2 header_hor header_inpos_top btn_hov_ state_default wpb-js-composer js-comp-ver-5.4.5 vc_responsive" itemscope itemtype="https://schema.org/WebPage">
{% wagtailuserbar %}
<div class="l-canvas sidebar_none type_wide">
<header class="l-header pos_fixed bg_solid shadow_thin" itemscope itemtype="https://schema.org/WPHeader">
<div class="l-subheader at_top">
<div class="l-subheader-h">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment