Hey everyone,
is it possible to build two structs where I can drag an drop between them?
I want to show current events on an event board but as many are reoccurring I would love to order them somehow.
~ Max
Hey everyone,
is it possible to build two structs where I can drag an drop between them?
I want to show current events on an event board but as many are reoccurring I would love to order them somehow.
~ Max
No, dragging between structure field is not possible. But you could add a toggle to each events to enable/disable them on demand?
Thats what I did. Then I added a sortBy that toggle but can I have another sort by?
Not sure what you mean, you can sort by multiple fields, like this
sortBy: status desc year desc
somehow it is not working
when I have a complete page blueprint it even sorts different to when I extend it as a field blueprint …
title: Events
icon: 📅
fields:
listed:
label:
en: Events
de: Events
type: structure
sortBy: visibility_toggle desc event desc
fields:
event:
label:
en: Event
de: Event
type: text
required: true
width: 1/1
description:
label:
en: Subtitle
de: Untertitel
type: text
width: 2/3
room:
label:
en: Room
de: Raum
type: select
width: 1/3
options:
havel1: Havel 1
havel2: Havel 2
havel3: Havel 3
havel12: Havel 1 & 2
havel23: Havel 2 & 3
havel123: Havel 1,2 & 3
borsig1: Borsig 1
borsig2: Borsig 2
borsig3: Borsig 3
borsig4: Borsig 4
borsig34: Borsig 3 & 4
spree1: Spree 1
spree2: Spree 2
spree3: Spree 3
spree12: Spree 1 & 2
spree23: Spree 2 & 3
spree123: Spree 1,2 & 3
restaurant: Restaurant
bf_room: Frühstücksraum
translate: false
start_time:
label:
en: Start Time
de: Startzeit
type: time
step:
unit: minute
size: 15
required: true
translate: false
width: 1/3
end_time:
label:
en: End Time
de: Endzeit
type: time
step:
unit: minute
size: 15
required: true
translate: false
width: 1/3
visibility_toggle:
label:
en: Publish on screen?
de: Auf Bildschirm anzeigen?
type: toggle
default: true
translate: false
text:
-
en: "no"
de: "nein"
-
en: "yes"
de: "ja"
width: 1/3
vs.
title: Events
icon: 📅
fields:
listed:
extends: fields/events
label:
de: Veranstaltungen
en: Events
&
label:
en: Events
de: Events
type: structure
sortBy: visibility_toggle desc event desc
fields:
event:
label:
en: Event
de: Event
type: text
required: true
width: 1/1
description:
label:
en: Subtitle
de: Untertitel
type: text
width: 2/3
room:
label:
en: Room
de: Raum
type: select
width: 1/3
options:
havel1: Havel 1
havel2: Havel 2
havel3: Havel 3
havel12: Havel 1 & 2
havel23: Havel 2 & 3
havel123: Havel 1,2 & 3
borsig1: Borsig 1
borsig2: Borsig 2
borsig3: Borsig 3
borsig4: Borsig 4
borsig34: Borsig 3 & 4
spree1: Spree 1
spree2: Spree 2
spree3: Spree 3
spree12: Spree 1 & 2
spree23: Spree 2 & 3
spree123: Spree 1,2 & 3
restaurant: Restaurant
bf_room: Frühstücksraum
translate: false
start_time:
label:
en: Start Time
de: Startzeit
type: time
step:
unit: minute
size: 15
required: true
translate: false
width: 1/3
end_time:
label:
en: End Time
de: Endzeit
type: time
step:
unit: minute
size: 15
required: true
translate: false
width: 1/3
visibility_toggle:
label:
en: Publish on screen?
de: Auf Bildschirm anzeigen?
type: toggle
default: true
translate: false
text:
-
en: "no"
de: "nein"
-
en: "yes"
de: "ja"
width: 1/3
Hm, looks like sorting by multiple fields doesn’t work