grav/themes/quark-open-publishing/blueprints/item.yaml

258 lines
7.9 KiB
YAML
Raw Normal View History

extends@: default
form:
fields:
tabs:
fields:
content:
type: tab
fields:
content:
markdown: true
default: "Your page summary goes here.\n\n===\n\nYour page content goes here."
blog:
type: tab
title: Blog Item
fields:
header_image:
type: section
title: Header Image
underline: true
header.header_image:
type: toggle
toggleable: true
label: Display Header Image
help: Enabled displaying of a header image
highlight: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
header.header_image_file:
type: text
toggleable: true
label: Image File
help: image filename that exists in the page folder. If not provided, will use the first image found.
placeholder: 'For example: myimage.jpg'
header.header_image_width:
type: text
toggleable: true
label: Image Width
size: small
help: Header width in px
placeholder: Default is 900
validate:
type: int
min: 0
max: 5000
header.header_image_height:
type: text
toggleable: true
label: Image Height
size: small
help: Header height in px
placeholder: Default is 300
validate:
type: int
min: 0
max: 5000
summary:
type: section
title: Summary
underline: true
header.summary.enabled:
type: toggle
toggleable: true
label: Summary
highlight: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
header.summary.format:
type: select
toggleable: true
label: Format
classes: fancy
options:
'short': 'Use the first occurence of delimiter or size'
'long': 'Summary delimiter will be ignored'
header.summary.size:
type: text
toggleable: true
label: Size
classes: large
placeholder: 300
validate:
type: int
min: 1
header.summary.delimiter:
type: text
toggleable: true
label: Summary delimiter
classes: large
placeholder: ===
openpublishingspace1:
type: section
title: Title Icon
underline: true
header.post_icon:
type: text
size: small
label: Font Awesome Icon for Blog Item
description: Short name, e.g. 'newspaper-o'.
help: Optional Font Awesome icon to override the default blog item title icon
default: null
validate:
type: text
openpublishingspace2:
type: section
title: Display in Blog List
underline: true
header.hide_from_post_list:
type: toggle
label: Display this Item in Blog List
help: Determines if this page (i.e. post) will appear in the blog index
default: 0
highlight: 0
options:
0: Yes
1: No
validate:
type: bool
2023-01-10 18:46:22 +01:00
import@:
type: partials/blog-bits
context: blueprints://pages
2023-01-10 18:44:48 +01:00
event:
type: tab
title: Event
fields:
header.event.status-section:
type: section
title: Status
underline: true
header.event.status:
label: Status
type: select
default: ""
options:
"": "None"
"scheduled": "scheduled"
"postponed": "postponed"
"cancelled": "cancelled"
title: Status
help: Possible values are scheduled, postponed, cancelled.
header.event.dt-section:
type: section
title: Date & Time
underline: true
header.event.doors_open:
type: datetime
label: PLUGIN_EVENTS.EVENTS.DOORS_OPEN
help: Use the date selector to enter a doors open date and time for this event.
header.event.start:
type: datetime
label: Start
help: Use the date selector to enter a start date and time for this event.
validate:
type: required
header.event.end:
type: datetime
label: End
help: Use the date selector to enter an end date and time for this event.
validate:
type: required
header.event.repeat:
type: text
label: Repeat
help: Using MTWRFSU to specify what days of the week this event repeats. For example, MWF.
placeholder: MTWRFSU
header.event.freq:
type: select
label: Frequency
help: How often should this event repeat?
options:
'': "None"
'daily': 'Daily'
'weekly': 'Weekly'
'monthly': 'Monthly'
'yearly': 'Yearly'
header.event.until:
type: datetime
label: Until
help: How long should this event repeat? (3 months automatically if Repeat or Frequency are set)
header.event.exceptions-section:
type: section
title: Exceptions
underline: true
header.event.exceptions:
type: list
style: vertical
name: exceptions
label: Enter dates this repeating/reoccuring event will not meet.
fields:
.date:
type: date
label: Date
header.event.ticket-section:
type: section
underline: true
title: Ticket
header.event.ticket_show:
label: Show
type: select
options:
"hidden": "Hidden"
"free": "Free"
"price": "Price"
title: Show events as free, price or just without information
header.event.ticket_price:
type: text
label: Price
placeholder: "9.00 $"
header.event.ticket_link:
type: text
label: Ticket Link
help: Paste link to Ticketsystem here
header.event.location-section:
type: section
title: Location
underline: true
header.event.location:
type: text
label: Location
help: Where is this event located? If you enter an address it will be geocoded below.
header.event.coordinates:
type: text
label: Coordinates
placeholder: Latitude, Longitude
help: These are automatically generated from the location field.
header.event.city:
type: hidden
header.event.zip:
type: hidden
header.event.country:
type: hidden