add page type with lead and body for /utleie

This commit is contained in:
2024-07-14 18:14:34 +02:00
parent b81bee1140
commit 8230635978
5 changed files with 353 additions and 47 deletions

View File

@ -31,6 +31,23 @@ class VenueIndex(Page):
graphql_fields = [GraphQLRichText("lead"), GraphQLStreamfield("body")]
@register_singular_query_field("venueRentalIndex")
class VenueRentalIndex(Page):
# there can only be one venue index page
max_count = 1
subpage_types = []
lead = RichTextField(features=["bold", "italic", "link"], blank=True)
body = CommonStreamField
content_panels = Page.content_panels + [
FieldPanel("lead", heading="Ingress"),
FieldPanel("body", heading="Innhold"),
]
graphql_fields = [GraphQLRichText("lead"), GraphQLStreamfield("body")]
class VenuePage(Page):
# no children
subpage_types = []