feat(collections): add calendar as a standalone template

This commit is contained in:
Elian Doran 2025-07-09 19:05:05 +03:00
parent 035b72a08d
commit 0d3c5b06e2
No known key found for this signature in database

View File

@ -27,6 +27,55 @@ export default function buildHiddenSubtreeTemplates() {
}
]
},
{
id: "_template_calendar",
type: "book",
title: "Calendar",
icon: "bx bx-calendar",
attributes: [
{
name: "template",
type: "label",
},
{
name: "collection",
type: "label"
},
{
name: "viewType",
type: "label",
value: "calendar"
},
{
name: "hidePromotedAttributes",
type: "label"
},
{
name: "label:startDate",
type: "label",
value: "promoted,alias=Start Date,single,date",
isInheritable: true
},
{
name: "label:endDate",
type: "label",
value: "promoted,alias=End Date,single,date",
isInheritable: true
},
{
name: "label:startTime",
type: "label",
value: "promoted,alias=Start Time,single,time",
isInheritable: true
},
{
name: "label:endTime",
type: "label",
value: "promoted,alias=End Time,single,time",
isInheritable: true
}
]
},
{
id: "_template_table",
type: "book",